I have a windows service that needs to access a message queue (MSMQ).
The queue itself is created using a MessageQueueInstaller
component that automatically generates the install code. I then deploy this using a standard setup project.
The service is installed in the same way, using the same setup project.
When I start the service it stops straight away, and I get the following exception in my code
Access to Message Queuing system is denied
I've tried both LocalService and NetworkService.
Do I need the installer to change the permissions required for the queue or do I need to change the permissions that the service has?
How should I modify the setup project to make this change?