Win Service getting permission denied to Message Queuing

前端 未结 1 874
深忆病人
深忆病人 2020-12-17 17:41

I have a WinService that can\'t start because NServiceBus throws \"Service cannot be started. System.Messaging.MessageQueueException (0x80004005): Access to Message Queuing

相关标签:
1条回答
  • 2020-12-17 18:09

    Found the solution !

    It's because service incorporated in NETWORK SERVICE user. You need to set permisions to the private MSMQ your accessing to do this

    1. open Computer Management
    2. Expand Message Queuing
    3. Expand Private Queues
    4. right click on the Queue your using and select Properties
    5. select the security tab and set permissions to your local user
    0 讨论(0)
提交回复
热议问题