Access to Message Queuing system is denied
I am trying to access queue message from my host, while trying to get message i am getting "Access to Message Queuing system is denied." message. Don't know how to solve this issue. I am using Windows 7 as client system and server is Windows 2008 R2 Server
I ran into the same issue trying to write to the MSMQ through ASP.NET (Windows 7). I added "Receive Message" "Peek Message" and "Send Message" permissions and it works correctly now. If you're running this through ASP.NET, then you're probably under the IIS_IUSRS account.
In my case, the MSMQ queues were owned by my own Windows user-account (local admin), because they had been created from running a console app from Visual Studio in administrator mode.
My web-app runs as NETWORK SERVICE
, which spawned the
Access to Message Queuing system is denied
error.
I fixed this by giving NETWORK SERVICE
full control:
Computer Management > Services and Applications > Message Queuing > Private Qeues > Right click queue > Properties > Security
Restart MSMQ service and IIS:
NET STOP MSMQ
NET START MSMQ
IISRESET