ASP.NET and Windows Services

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
 
G

Guest

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).
 

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

Top