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;