MessageQueueException(0x80004005):拒绝访问消息队列系统 [英] MessageQueueException (0x80004005): Access to Message Queuing system is denied
问题描述
我有一个现有的应用程序,可以在Windows 2003服务器上正常工作.我一直将其移至Windows 2008r2,当应用程序尝试访问队列时,出现以下错误?我的应用程序池的Indentity用户可以完全控制我的消息队列.是否有人对如何解决此问题有任何想法.我相信这是服务器配置问题.
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
推荐答案
从Win 2003迁移到Win 2008 R2时,我只是有相同的经历-事实证明,当我使用时,2008 R2用小写字母创建队列. NET API创建队列.稍后,当应用程序尝试访问队列时,它无法使用大写字母访问它们(给出您指出的错误).使用小写字母可以解决此问题.
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
这篇关于MessageQueueException(0x80004005):拒绝访问消息队列系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!