ASP.NET and Windows Services

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a Windows Service that I would like to Start/Stop from
ASP.NET. I can access most of the properties of the ServiceController class
without any issues. When I attempt to Start or Stop the service from my web
form, the following error is generated:

System.ComponentModel.Win32Exception: Access is denied

Does anyone know a way to get around this issue without updating the Machine
or Web config settings (if possible).

Thanks
 
Might just be a security issue if the service is running on a remote server
(I typically didn't have permission to start/stop production service unless
I was just testing it out locally) - Lots of times under DBA control.
In other words you truly don't have access rights to the start, stop, pause
and resume functionality of the service right now (also dependent on
what account you're running under).
 
Back
Top