从 MVC .Net 访问 NServiceBus MSMQ 时出现权限错误

发布于 2024-08-10 19:54:19 字数 368 浏览 1 评论 0原文

我写了一个mvc,使用nservicebus来发布消息。这在卡西尼号下工作得很好。

尝试使用 IIS 时,我在调用 Create() 创建总线时收到错误消息。

对消息队列系统的访问被拒绝。 描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

异常详细信息:System.Messaging.MessageQueueException:对消息队列系统的访问被拒绝。

我已将 IIS 虚拟目录上的匿名访问用户设置为我自己的域帐户,该帐户是本地计算机上管理员组的成员。我已授予该用户对队列以及 NETWORK SERVICE 和 ASPNET 的完全权限。

任何有关此问题的帮助将不胜感激!

I have written a mvc that uses nservicebus to publish messages. This works fine under Cassini.

When trying to use IIS, I receive an error message when I call Create() to create the Bus.

Access to Message Queuing system is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Messaging.MessageQueueException: Access to Message Queuing system is denied.

I have set the anonymous access user on the IIS virtual directory to be my own domain account, which is a member of the administrators group on the local machine. I have granted this same user full permissions on the queue, as well as NETWORK SERVICE and ASPNET.

Any help with this problem will be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅听莫相离 2024-08-17 19:54:19

解决方案是删除队列。

我尝试在 web.config 的 MsmqTransportConfig 部分中使用 FormatName,如 从 ASP .Net Web 服务访问 MSMQ 时出现权限错误。那不起作用。

删除队列就完成了。

Solution was to delete the queues.

I tried using the FormatName in the MsmqTransportConfig section of my web.config, as recommended in Permissions error accessing MSMQ from ASP .Net Web Service. That did not work.

Deleting the queues did.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文