Solve the access to Message Queuing System is denied. Permission Problem

Source: Internet
Author: User
Tags msmq

The access to Message Queuing System is denied problem was encountered during MSMQ usage.

Solution:

First, Set permissions after creating a queue;
Messagequeue MQ = messagequeue. Create (@ ". \ private $ \ wuqainjumsmq ");
Modify the remote computer's queue permission to obtain access to the remote computer's queue. There are two methods available:
1> MQ. setpermissions ("User Name", permission value );
2> my computer/manage/services and applications/messsage queuing/Public queues --> queue name --> right click --> properites --> Security -- set permission

Second, modify the queue with no Permissions
In the System32 \ MSMQ \ storage \ lQs directory, open the file in Notepad as follows:

*************************

[Properties]
Label =
Type = 00000000-0000-0000-0000-000000000000-
Queuename = \ private $ \ msmqtriggersnotifications
Journal = 00
Quota = 1, 4294967295
Security = secure
Journalquota = 4294967295
Createtime = 1252031354.
Basepriority = 0
Modifytime = 1252031354.
Authenticate = 00
Privlevel = 1
Transaction = 00
Systemqueue = 00
Signature = doronj

*************************

Queuename is the queue name.

Security is the permission;

Create a new queue, Set permissions, copy the security of the new queue to the security of "wuqainjumsmq", and save the file; wuqainjumsmq has the corresponding permissions;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.