MessageQueueException (0x80004005):对消息队列系统的访问被拒绝
我有一个现有的应用程序,可以在 Windows 2003 服务器上正常运行。我已将其移至 Windows 2008r2,当应用程序尝试访问队列时,出现以下错误?我的应用程序池的 Indentity 用户可以完全控制我的消息队列。有谁对如何解决这个问题有任何想法。我相信这是服务器配置问题。
[MessageQueueException (0x80004005): Access to Message Queuing system is denied.]
System.Messaging.MQCacheableInfo.get_ReadHandle() +221
System.Messaging.MessageEnumerator.get_Handle() +70
System.Messaging.MessageEnumerator.MoveNext(TimeSpan timeout) +93
System.Messaging.MessageQueue.GetAllMessages() +58
NServiceBus.Unicast.Subscriptions.Msmq.MsmqSubscriptionStorage.Init(IList`1 messageTypes) +124
NServiceBus.Unicast.UnicastBus.Start(Action`1[] startupActions) +674
Connector.Service.InitBus() +201
Connector.OutgoingService..cctor() +9
I have an exsiting application that works fine on a windows 2003 server. I having been moving it to windows 2008r2 and when the application trys to access the queue it gets the below error? The Indentity user of my app pool has full control of my message queue. Does anyone have any ideas on how to fix this. I believe this to be server config issue.
[MessageQueueException (0x80004005): Access to Message Queuing system is denied.]
System.Messaging.MQCacheableInfo.get_ReadHandle() +221
System.Messaging.MessageEnumerator.get_Handle() +70
System.Messaging.MessageEnumerator.MoveNext(TimeSpan timeout) +93
System.Messaging.MessageQueue.GetAllMessages() +58
NServiceBus.Unicast.Subscriptions.Msmq.MsmqSubscriptionStorage.Init(IList`1 messageTypes) +124
NServiceBus.Unicast.UnicastBus.Start(Action`1[] startupActions) +674
Connector.Service.InitBus() +201
Connector.OutgoingService..cctor() +9
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我刚刚从 Win 2003 迁移到 Win 2008 R2 时也有过同样的经历 - 事实证明,当我使用 .NET API 创建队列时,2008 R2 创建的队列带有小写字母。稍后,当应用程序尝试访问队列时,它无法使用大写字母访问它们(给出您所说的错误)。使用小写可以解决问题。
/AZ
I just had the same experience when moving from Win 2003 to Win 2008 R2 - and it turned out that 2008 R2 create queues with lowercase letters when I use the .NET APIs to create the queue. Later when the application tries to access the queue it cannot access them (giving the error you state) using uppercase letter. Using lowercase solves the problem.
/AZ
我还收到以下信息:
System.Messaging.MessageQueueException (0x80004005): 访问消息队列系统被拒绝。生成自:NServiceBus.Utils.MsmqUtilities。
授予“错误”队列上的“每个人”权限解决了该问题。
I also got the following:
System.Messaging.MessageQueueException (0x80004005): Access to Message Queuing system is denied. Being generated from: NServiceBus.Utils.MsmqUtilities.
Giving 'Everyone' permissions on the 'error' queue solved the problem.
我还使用 2008 R2,是的,实际创建的队列名称是小写的,但在我的代码中,使用大写访问它效果很好。
I also use 2008 R2, Yes, the actually queue name being created is lower-cased, but in my code, access it using the Upper case works well.
还添加了“匿名登录”权限并且它起作用了。
Also added permission to 'Anonymous Logon' and it worked.