URGENT ! Windows Service Crash

V

V.Balaji

Hi All,

I have a problem in one of the windows service which is created using .net.
The Service frequently stops and there is no entry in the Event Log for a
crash please help me in sorting. I would also like to know is there any way
to restart the service automatically restart the service when it hangs or
stops.

Regards
V.Balaji
 
S

steve

| I have a problem in one of the windows service which is created using
..net.
| The Service frequently stops and there is no entry in the Event Log for a
| crash please help me in sorting. I would also like to know is there any
way
| to restart the service automatically restart the service when it hangs or
| stops.

you can use the system.serviceprocess.servicecontroller class to check the
status/start/pause/stop the service in question. plenty of documentation on
that class so there is no need for me to exemplify it here...very
straight-forward.

as far as the event log goes, you need to handle all errors that could be
happening in your code and write them to the event log yourself.
 

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