ServiceController and "Access Denied" errors

  • Thread starter Thread starter Ron
  • Start date Start date
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
 
Back
Top