Access to Message Queuing system is denied



    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#?

    Monday, March 03, 2008 6:23 AM

All replies

  • Same problem with me.

    Did ya managed to resolve this.
    Monday, July 28, 2008 8:37 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 me

            static 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
    Thursday, November 06, 2008 4:20 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


    John Breakwell


    Tuesday, September 27, 2011 8:32 AM