NServiceBus不会自动创建队列(MSMQ) [英] NServiceBus not creating queues automatically (MSMQ)

查看:63
本文介绍了NServiceBus不会自动创建队列(MSMQ)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从NServiceBus网站上进行示例( http://docs.特别是.net/samples/step-by-step/),当我在Visual Studio中运行时,一切正常,并且队列是自动创建的(即使我删除它们并重新运行解决方案也比它们自动创建的) .开发人员机器运行Windows 8.

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.

我有一个模拟的Windows 2008 RC2-当我将解决方案bin文件夹带到服务器计算机上并尝试运行NServiceBus.Host.exe时,它最终崩溃,原因是:队列不存在或您没有足够的权限来执行该操作"-即使我以管理权限运行也是如此.当查看队列时,我看到它们不是创建的,如果手动创建队列,它会起作用.

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?

更新

如果我运行NServiceBus.Host.exe /install,它将创建队列,并将其安装为Windows服务.但是我想做的是定期运行它.如果我只运行exe,是否将其视为自托管文件?

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?

推荐答案

您可以使用NServiceBus.Integration参数运行NServiceBus.Host.Exe,这将创建您的队列...

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

这篇关于NServiceBus不会自动创建队列(MSMQ)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆