NServiceBus not creating queues automatically (MSMQ)

[亡魂溺海] 提交于 2019-12-12 12:25:16

问题


I'm doing the examples from the NServiceBus website (http://docs.particular.net/samples/step-by-step/) and when I run in Visual Studio everything works and the queues are created automatically (even if I delete them and re-run the solution than they get created automatically). The dev machine runs Windows 8.

I have an emulated Windows 2008 RC2 - when I take my solution bin folder to the server machine and try to run NServiceBus.Host.exe it eventually crashes and the reason is: "The queue does not exist or you do not have sufficient permissions to perform the operation" - even when I run with administrative privileges. When looking the the queue I see that they were not created, and if I manually create the queues than it works.

Why doesn't queues get created automatically when I run on a different machine?

Update

If I run NServiceBus.Host.exe /install than it creates the queues, and also installs it a s windows service. But what I would like to do is run it regularly. If I just run the exe, is it considered as self hosted?


回答1:


You can run the NServiceBus.Host.Exe with NServiceBus.Integration argument, that should create your queues...

For more info on profiles take a look here and here

HTH



来源:https://stackoverflow.com/questions/26500844/nservicebus-not-creating-queues-automatically-msmq

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