Click here to Skip to main content
15,569,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My problem is little confusing, I have 2 servers (Windows Server 2008 R2) with MSMQ installed and I want consume a MessageQueue are in Server A from Server B, but when I try to Receive always throw 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 work to Send)

I can ping each other;
The firewall is disable;
The "queuesource" has Full Control to "Everyone", "Anonymous Logon", "Network", "Network Services";
Journal is disable;
Authenticated too;
And the queue is Transactional.
My code in .Net C# is basically like this:

C#
MessageQueue _sourceQueue = new MessageQueue();
_sourceQueue.Path = "FormatName:Direct=TCP:172.31.23.195\private$\queuesource";
_sourceQueue.Receive(); // << here throw an exception "Access to message denied whatever..."

Actually I'm using Private Queue only to avoid Active Directory's problems, for example, if the server DNS fall all network fall. I don't know what do anymore. If someone know something I'm really appreciate.
Posted
Updated 7-Jan-22 4:02am
Comments
ZurdoDev 29-Oct-13 10:36am    
It's been a while since I have done MSMQ but I would think that the error is pretty clear. It's a permissions issue.
Jeankininho 29-Oct-13 11:33am    
Thanks for answer RyandDev,
You said this is permissions issue and you damn right, but all permissions it needed I gave. And now I have already list "Anonymous Logon" to Owner.

1 solution

After many hours and much sweat HALLELUJAH.

The answer is:

In "Server Manager">"Features"> Right click in "Message Queueing">"Properties">
Tab "Server Security" and disable the option "Disable un-authenticated RPC calls".
 
Share this answer
 
Comments
Bogdan0x400 29-May-14 11:30am    
I am experiencing same problem, but disabling this option didn't help me.
svskiran 23-Sep-15 11:03am    
Have you got solution, because I stuck at the same issue?
m1o2 5-Nov-14 4:18am    
Thanks, it works now!
Shubham Garg Oct2021 6-Jun-22 15:55pm    
Is it possible to enable Message Queueing (basically disable un-authenticated RPC calls) without the server manager? I am using Windows 10 Home (Version 21H1) so I am facing issues in installing the server manager.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900