从 MVC .Net 访问 NServiceBus MSMQ 时出现权限错误
我写了一个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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是删除队列。
我尝试在 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.