MSMQ Permissions


Y

yofnik

Hello,
I have an application that runs as a Windows Service. When the
application runs for the very first time, it creates a new MSMQ Queue.
Because the Queue was created under the SYSTEM account, now I cannot
modify, delete, or even view the contents of the queue from the MSMQ
Admin. What are my options to allow me to gain access to this queue?

Thanks
 
Ad

Advertisements

Y

yofnik

I understand what the problem is. The link you provided mentions how to
prevent it. My question is now that I am in this situation, how do I
correct it? Is my only option to create a new Windows Service to go in
an modify the queue's permissions?
 
Ad

Advertisements

A

Alvin Bruney - ASP.NET MVP

you should impersonate an admin account or better yet, a speciall account
that has admin priviledges. Don't impersonate at the application level, just
impersonate on the calling thread or programatically because it is safer.
That should get your queue account created with the correct permissions set.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

XMLDocument and MSMQ 1
MSMQ group? 2
MSMQ & Multithreading 5
MSMQ and Transactions 1
Working with MSMQ 5
MSMQ Trigger 3
MSMQ Design Question 3
StackTrace object and MSMQ 1

Top