kill process in .net

G

Guest

Hello Everyone,

I am using service controller class to start, stop services on my remote
machine. Is there any way I can also do the kill command for the services
that hung up when I issue the service.stop command.

I know I can use System.diagnostics process, but its giving me error "Access
denied". I wanted to use something with service controller.

Any help will be grealty appreciated.

Thanks.
 
W

Willy Denoyette [MVP]

Vinki said:
Hello Everyone,

I am using service controller class to start, stop services on my remote
machine. Is there any way I can also do the kill command for the services
that hung up when I issue the service.stop command.

I know I can use System.diagnostics process, but its giving me error "Access
denied". I wanted to use something with service controller.

Any help will be grealty appreciated.

Thanks.


No, you can't. Note that your service hangs because of a bug, hanging services should never
be deployed, all you can do is fix the bug.

Willy.
 

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