【发布时间】:2018-05-01 02:11:14
【问题描述】:
我正在尝试使用 NServiceBus 和 MSMQ 作为传输。一个很简单的例子:
static void Main(string[] args)
{
var endpointConfiguration = new EndpointConfiguration("myappqueue");
endpointConfiguration.UseTransport<MsmqTransport>();
var endpointInstance = Endpoint.Start(endpointConfiguration).Result;
Console.ReadKey();
endpointInstance.Stop();
}
我已在其中添加了 Windows 功能消息队列并创建了一个名为 myappqueue 的私有队列。
当我运行应用程序并到达 Endpoint.Start 行时,我收到以下错误:
错误转发需要使用 'EndpointConfiguration.SendFailedMessagesTo()' 指定错误队列
我错过了什么?此配置未在 Particular 文档站点上的示例中提及。
【问题讨论】:
标签: nservicebus msmq