My application consists of two part: a web service, which sends queues to a private MSMQ queue, and a Windows service, which takes queues and inserts them to database. In my development machine, everything's fine, but when I deploy them to the server, a permission issue was risen:
- The webservice, runs inside IIS, use NETWORK SERVICE account to create the queue.
- the service itself, runs as administrator, and then cannot access the queue.
I tried to add permissions for administrator account, but failed with error "Access is denied". I even cannot delete these queues.
How can I fix this? Thank you very much