Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
problem in in starting the windows service application as service..service is starting for few seconds and then stopped and return the error

//stopped like log or other components..
Posted

This generally happens when the service has nothing to do.
In such cases, it starts and stops after a few seconds.
Check you code if service is doing anything or not.
If you can't find any solution, consider debugging the service.
 
Share this answer
 
So figure out what the error is, use the event log or otherwise log the error
 
Share this answer
 
It may be due to a runtime exception in the code ,which you have not obtained during the development/testing phase.As told by Mark, the system event log can help you to trace the error.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900