Evgeniy Berezovsky
Evgeniy Berezovsky

Reputation: 19208

Receiving MSMQ messages on Windows Server 2016

I set up a queue on a Windows Server 2016 machine, but I cannot for the life of me figure out how to receive messages from it remotely.

MessageQueue.Receive() will throw

MessageQueueException (0x80004005): Access to Message Queuing system is denied

I then configured a queue in the same way on another box with Windows Server 2008 R2, and that queue I could receive from just fine.

So here are some details about my setup, and what I've tried so far.

What else should I check? How can I get to the bottom of this?

Upvotes: 1

Views: 2135

Answers (1)

Evgeniy Berezovsky
Evgeniy Berezovsky

Reputation: 19208

I finally got it to work by disabling Secured Remote Read:

To modify this default behavior and allow the Message Queuing server to accept requests from domain computers that do not establish an encrypted channel, add the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\Security\NewRemoteReadServerAllowNoneSecurityClient registry entry (a DWORD) and set it to 1.

Source: https://msdn.microsoft.com/en-us/library/ms699854.aspx

Upvotes: 1

Related Questions