Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a Window Service using VS 2010. It worked well. Today, I only modify an Oracle DB table. Then I restarted the Window Service, but got it stopped automatically. Hopefully, I can get a hint from an experienced professional. Thanks in advance.
Posted
Comments
[no name] 4-Aug-14 9:16am    
*Hint* add logging to your service so you can log error messages.
s yu 4-Aug-14 10:11am    
I have solved the problem. This window service retrieves data dynamically from a website in every 2 seconds. From the source data from the website, I found a unusual string that was not handled in my previous code. I revised the code and then it went through. After that I read some responses. Mehdi proposed solution was the same as I did. So, I will accepted his as the solution.

1 solution

If you have the source code, then try adding exception logging to your service to determine what went wrong, see : Mini Drop-in Replacement for log4net[^]
 
Share this answer
 
Comments
s yu 4-Aug-14 10:11am    
See my comment above. Thanks.

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