为什么我不能在NServiceBus中使用Bus.Reply()给自己?

时间:2013-02-28 19:04:44

标签: nservicebus

当我的端点Bus.Reply()Bus.SendLocal()发送消息时,我收到以下错误消息,导致消息失败:

2013-02-28 13:54:16,994 [Worker.15] WARN  NServiceBus.Unicast.Transport.Transact
ional.TransactionalTransport [(null)] <(null)> - Failed raising 'transport messa
ge received' event for message with ID=42e4b3ed-d0a2-4ab0-acfb-3531d8dafa3e\2056
7
NServiceBus.Unicast.Transport.TransportMessageHandlingFailedException: Exception
 of type 'NServiceBus.Unicast.Transport.TransportMessageHandlingFailedException'
 was thrown.
   at NServiceBus.Unicast.UnicastBus.HandleTransportMessage(IBuilder childBuilde
r, TransportMessage msg) in c:\BuildAgent\work\nsb.master_6\src\unicast\NService
Bus.Unicast\UnicastBus.cs:line 1331
   at NServiceBus.Unicast.UnicastBus.TransportMessageReceived(Object sender, Tra
nsportMessageReceivedEventArgs e) in c:\BuildAgent\work\nsb.master_6\src\unicast
\NServiceBus.Unicast\UnicastBus.cs:line 1248
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at NServiceBus.Unicast.Transport.Transactional.TransactionalTransport.OnTrans
portMessageReceived(TransportMessage msg) in c:\BuildAgent\work\nsb.master_6\src
\impl\unicast\transport\NServiceBus.Unicast.Transport.Transactional\Transactiona
lTransport.cs:line 480

这是我的配置:

 Configure
     .With(AllAssemblies.Except("evointernal.dll")) // This is a COM assembly and should not be scanned.
     .StructureMapBuilder(ObjectFactory.Container)
     .JsonSerializer()
     .UnicastBus().DoNotAutoSubscribe()
     .Sagas();

0 个答案:

没有答案