Click here to Skip to main content
13,410,848 members (31,935 online)
Rate this:
 
Please Sign up or sign in to vote.
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:

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 29-Oct-13 5:22am
Comments
RyanDev 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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".
  Permalink  
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!

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.180221.1 | Last Updated 29 Oct 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100