开发者

Permissions error accessing NServiceBus MSMQ from MVC .Net

开发者 https://www.devze.com 2022-12-10 19:21 出处:网络
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 crea开发者_StackOverflow中文版

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 crea开发者_StackOverflow中文版te 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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消