ServiceController and "Access Denied" errors

R

Ron

I have a asp.net application that uses the above class to
open, get status and start/stop a service. I can get the
Status of my Service, but can't start/stop it. I keep
getting Access Denied errors.

System.ComponentModel.Win32Exception: Access is denied

I see ServiceControllerPermission class - but not sure how
to use it.

Any help is much appreciated.
Thanks,
Ron
 

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top