Access to message queuing system is denied MSMQ?

Posted by user1401694 on Server Fault See other posts from Server Fault or by user1401694
Published on 2013-10-29T14:09:01Z Indexed on 2013/10/29 15:58 UTC
Read the original article Hit count: 1691

My problem is a little confusing. I have 2 servers (Windows Server 2008 R2) with MSMQ installed and I want to use Server B to consume a MessageQueue on Server A. When I try to Receive it always throws a message error: "Access to message queuing system is denied.".

IP between them.

Server A: 172.31.23.130

Server B: 172.31.23.195

FormatName:Direct=TCP:172.31.23.195\private$\queuesource (It's working for Sends)

  • I can ping each server from the other;
  • The firewall is disabled;
  • The "queuesource" has Full Control to "Everyone", "Anonymous Logon", "Network", "Network Services";
  • Journal is disabled;
  • Authentication is ok;
  • The queue is Transactional.

My code in .Net C# is basically like this:

MessageQueue _sourceQueue = new MessageQueue();
_sourceQueue.Path = "FormatName:Direct=TCP:172.31.23.195\private$\queuesource";
_sourceQueue.Receive(); // << here throw an exception.

Actually I'm using the Private Queue only to avoid Active Directory's problems. For example, if the server DNS fail all network fail. I don't know what do anymore.

© Server Fault or respective owner

Related posts about windows-server-2008-r2

Related posts about .NET