Permissions to access NServiceBus MSMQ from MVC.Net

I wrote mvc that uses nservicebus to post messages. It works great under Cassini.

When I try to use IIS, I get an error when calling Create () to create a bus.

Access to the message queue system has been denied. Description: An unhandled exception occurred during the execution of the current web request. Check the stack trace for more information about the error and where it appeared in the code.

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

I set up an anonymous access user in the IIS virtual directory as my own domain account, which is a member of the administrators group on the local computer. I granted the same users full permissions in the queue, as well as NETWORK SERVICE and ASPNET.

Any help with this issue would be greatly appreciated!

+3
source share
1 answer

The solution was to delete the queues.

I tried using FormatName in the MsmqTransportConfig section of my web.config, as recommended in the Permission to access MSMQ from ASP.Net Web Service . This did not work.

Delete queues.

+2
source

Source: https://habr.com/ru/post/1722375/


All Articles