hi,
want to stop the running windows service using C#.NET code if there is any exception. service implementation class instance gets created in windows service class and then implmentation class calls the method writeevents when timer elasped. now if there is any exception in the method i want to stop the running service. tried servicecontroller.stop() method. in a seperate class using delegate in the implementation class. As _controller.stop() should stop the service....but in service panel , it shows stopping status for the service..but the service thread keeps running and never stops.
please can some one help me with this
Want to stop the windows service using code?
Here's a link to an article dealing with stopping windows services in C# using remoting, source code included.
http://www.codeproject.com/csharp/stoppi...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment