468,765 Members | 1,583 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

ServiceController and "Access Denied" errors

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

Nov 17 '05 #1
1 3340
Ian
Hi Ron,

I have the same problem, did you find a solution as yet?

Ian

"Ron" <an*******@discussions.microsoft.com> wrote in message news:<07****************************@phx.gbl>...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Frances Del Rio | last post: by
1 post views Thread by Winterminute | last post: by
6 posts views Thread by ASP.Confused | last post: by
reply views Thread by ASP.Confused | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.