简体   繁体   English

Windows服务无法访问网络服务帐户以访问msmq

[英]windows service has access denied to the Network Service account to msmq

I have written a windows service that runs under the Network Service account. 我已经编写了在网络服务帐户下运行的Windows服务。 The application is to receive messages from MSMQ residing on another server. 该应用程序将从驻留在另一台服务器上的MSMQ接收消息。 Without the windows service wrapper around the app, the actual receiving of the queue works fine. 在应用程序周围没有Windows Service包装器的情况下,队列的实际接收工作正常。 So I know it's something to do with the account, aside from the MSMQ service raising an Access Denied error. 因此,除了MSMQ服务引发“访问被拒绝”错误外,我知道这与帐户有关。 Within MSMQ itself and the specific queue that my service is interested in I have ensured for now at both levels the Network Service Account has full control of the queue, so I dont understand why I'm still receiving access denied errors. 在MSMQ本身以及我的服务感兴趣的特定队列中,我现在已经确保在两个级别上网络服务帐户都可以完全控制该队列,因此我不明白为什么我仍然会收到拒绝访问错误。

I needed a user in the Active Directory with appropriate permissions. 我需要Active Directory中具有适当权限的用户。 This user also had to be given correct permissions on the MSMQ Service. 还必须给该用户正确的MSMQ服务权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM