如何正确设置NServiceBus以使用远程错误队列?

如何正确设置NServiceBus以使用远程错误队列?,nservicebus,Nservicebus,我正在尝试将NServiceBus设置为使用远程错误队列,以简化检查错误的管理。执行此操作时,在NServiceBus.Host.exe启动时会出现以下错误: 2010-03-25 07:59:50103[1]错误NServiceBus.Utils.MsmqUtilities[(null)]-无法创建队列error@C0NSERVICEBUS或者检查它的存在。处理仍将继续。 System.Messaging.MessageQueueException:队列路径名称无效。 位于System.Mes

我正在尝试将NServiceBus设置为使用远程错误队列,以简化检查错误的管理。执行此操作时,在NServiceBus.Host.exe启动时会出现以下错误:

2010-03-25 07:59:50103[1]错误NServiceBus.Utils.MsmqUtilities[(null)]-无法创建队列error@C0NSERVICEBUS或者检查它的存在。处理仍将继续。 System.Messaging.MessageQueueException:队列路径名称无效。 位于System.Messaging.MessageQueue.ResolveFormatNameFromQueuePath(字符串queuePath,布尔ThroweException) 位于System.Messaging.MessageQueue.Exists(字符串路径) 在NServiceBus.Utils.MsmqUtilities.CreateQueueIfEssential处(字符串queueName)

以下是我的NServiceBus配置设置:

    <!-- in order to configure remote endpoints use the format: "queue@machine" 
   input queue must be on the same machine as the process feeding off of it.
   error queue can (and often should) be on a different machine.  -->

<MsmqTransportConfig InputQueue="ClipboardSubscriberInputQueue" ErrorQueue="error@C0NSERVICEBUS" NumberOfWorkerThreads="1" MaxRetries="5"/>

<UnicastBusConfig>
    <MessageEndpointMappings>
        <add Messages="PatientFirst.Messaging" Endpoint="ClipboardPublisherInputQueue@C0NSERVICEBUS"/>
    </MessageEndpointMappings>
</UnicastBusConfig>


这是正常的预期行为吗?如果不是的话,我做错了什么?

这是正常的行为

NServiceBus尝试在可能的情况下自动为您创建队列。当它不能工作时,它的低级组件可能会抱怨,但正如您在日志中看到的,高级组件会继续工作