NServiceBus Bus.Send().Register(callback) Not Working on IIS/Windows Server 2008

一曲冷凌霜 提交于 2019-12-05 14:27:03

I solved the problem. Turns out the reason for the replies getting lost was due to the fact that I was referencing the distributor as such:

<UnicastBusConfig DistributorControlAddress="Node.Distributor.ControlInputQueue@10.1.4.58" DistributorDataAddress="Node.Distributor.DataInputQueue@10.1.4.58" />

But it turns out that the NServiceBus distributor doesn't like IPs. So I changed it to the following:

<UnicastBusConfig DistributorControlAddress="Node.Distributor.ControlInputQueue@HOSTNAME" DistributorDataAddress="Node.Distributor.DataInputQueue@HOSTNAME" />

and this solved the problem. I also had to update my hosts file in Windows since NSB/MSMQ uses hostnames. I am not sure if this is a bug in NServiceBus or if it is a known issue but it should really be documented if it isn't already.

Sounds like queue permissions to me. Check your queues on the WCF side to see if msmq can even deliver the message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!