解决Access to Message Queuing system is denied.权限问题
2009-09-11 13:45
555 查看
在使用MSMQ的过程中遇到了 Access to Message Queuing system is denied 问题
如下解决办法:
第一种,创建队列后设置权限;
MessageQueue mq = MessageQueue.Create(@”.\Private$\WuQainJuMSMQ”);
修改远程计算机queue权限就完全可以取得远程计算机queue的访问,具体方法有两种
1>mq.SetPermissions("用户名", 权限值);
2>my computer/manage/services and Applications/messsage Queuing/public queues-->queue name-->right click-->properites-->security--set permission
第二种,修改没有权限的队列
在系统目录system32中\msmq\storage\lqs目录中文件,用记事本打开...内容如下
*************************
[Properties]
Label=
Type=00000000-0000-0000-0000-000000000000
QueueName=\private$\msmqtriggersnotifications
Journal=00
Quota=4294967295
Security=01000780300000003c000000000000001400000002001c0001000000000014003f000f00010100000000000100000000010100000000000512000000010100000000000512000000
JournalQuota=4294967295
CreateTime=1252031354
BasePriority=0
ModifyTime=1252031354
Authenticate=00
PrivLevel=1
Transaction=00
SystemQueue=00
Signature=DoronJ
*************************
QueueName是队列的名称
Security就是权限;
新建一个队列,设置好权限,拷贝新建队列的Security到"WuQainJuMSMQ"的Security,保存文件;WuQainJuMSMQ就有了相应的权限;
如下解决办法:
第一种,创建队列后设置权限;
MessageQueue mq = MessageQueue.Create(@”.\Private$\WuQainJuMSMQ”);
修改远程计算机queue权限就完全可以取得远程计算机queue的访问,具体方法有两种
1>mq.SetPermissions("用户名", 权限值);
2>my computer/manage/services and Applications/messsage Queuing/public queues-->queue name-->right click-->properites-->security--set permission
第二种,修改没有权限的队列
在系统目录system32中\msmq\storage\lqs目录中文件,用记事本打开...内容如下
*************************
[Properties]
Label=
Type=00000000-0000-0000-0000-000000000000
QueueName=\private$\msmqtriggersnotifications
Journal=00
Quota=4294967295
Security=01000780300000003c000000000000001400000002001c0001000000000014003f000f00010100000000000100000000010100000000000512000000010100000000000512000000
JournalQuota=4294967295
CreateTime=1252031354
BasePriority=0
ModifyTime=1252031354
Authenticate=00
PrivLevel=1
Transaction=00
SystemQueue=00
Signature=DoronJ
*************************
QueueName是队列的名称
Security就是权限;
新建一个队列,设置好权限,拷贝新建队列的Security到"WuQainJuMSMQ"的Security,保存文件;WuQainJuMSMQ就有了相应的权限;
相关文章推荐
- 关于access to the path is denied问题的解决
- 关于access to the path is denied问题的解决(路径被拒绝)
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 解决Mysql出现Access denied for user ''@'localhost' to database '的问题
- Access denied for user'admin'@'localhost' to database 问题的解决
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- apache服务器出现Permission denied:access to / denied问题的解决方法
- Host is not allowed to connect to this MySQL server 和 access denied for user 'root'@'localhost' 解决办法
- 【Phpadmin】解决phpadmin的“It is not safe to rely on the system’s timezone settings”问题
- IIS Web怪问题: Access is denied due to invalid credentials.
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- Mysql - 解决Access denied for user ''@'localhost' to database 'mysql'问题
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- mount.nfs: access denied by server while mounting解决由权限引发的问题
- 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- 故障解决:Failure adding assembly to the cache: Access denied. You might not have administrative credentials to perform this task. Contact your system administrator for assistance.
- Mysql - 解决Access denied for user ''@'localhost' to database 'mysql'问题
- WampServer解决Access denied for user ''@'localhost' to database 'mysql'的问题
- 解决php的“It is not safe to rely on the system’s timezone settings”问题