Access to Message Queuing system is denied
-
Monday, March 03, 2008 6:23 AM
When I try to open private/public msmq located on Winodws XP from my
C# application it tells me that Access to Message Queuing system is
denied/remote compuer is not available.
I assign Full Control permission to my private/publci msmq that I created for
Everyone. However, I still get access denied.I right-click on message queuing and go to properties. Under security tab,
I give again Full Control to Everyone. Restarted msmq service, and still
get the same problem.Why do I get access denied from C#?
All Replies
-
Monday, July 28, 2008 8:37 AMSame problem with me.
Did ya managed to resolve this. -
Thursday, November 06, 2008 4:20 AM
I've been having a very similar Problem as well.
One of the reasons for this behaviour is caused because the MSMQ is installed in Networkgroup mode.
Try using an Account from the domain that has Admin rights in the computer. (that's the only thing that is working for me)
I also added some Permisions to the Queue. I am quite sure there is other way to do it but this works for mestatic MSMQReceiver ( ) { instance = new MSMQReceiver ( ); if ( MessageQueue.Exists ( Settings.Instance.QueueName ) ) { instance.msmq = new MessageQueue ( Settings.Instance.QueueName ); instance.msmq.SetPermissions ( Environment.UserName, MessageQueueAccessRights.FullControl, AccessControlEntryType.Set ); } }
hope it helps
Ricardo Casquete
- Edited by Ricardo Casquete Thursday, November 06, 2008 4:48 AM
- Proposed As Answer by Robert MacLeanMVP Friday, February 06, 2009 1:24 PM
-
Tuesday, September 27, 2011 8:32 AM
This is a problem with RPC security and/or queue permissions.
Queue permissions
Everyone doesn't mean everyone. You need to add Anonymous Logon as well to really mean "everyone". The Everyone special group only includes accounts it can resolve (local accounts on the machine and domain accounts on the domain).
RPC Security
Cheers
John Breakwell

