My Windows Service Immediately stop after start up
-
Tuesday, April 20, 2010 10:29 AM
I have exception handling which will write to my event log.
After my service was stopped. I look at the event viewer, no error was found on my own event log and the system log.
The system log only has two information logged, event start and then event stop.
How could I find out what went wrong?
Well, I later find out that, because I am using a .resx to write event log message.
and the service through a runtime exception telling me that the .resx could not be found.
How do I use a .resx in windows service project?
All Replies
-
Wednesday, April 28, 2010 2:35 AM
Hi Maxi Ng,
I google it, and find few things about how to use .resx in Windows Service project. However, I find some useful links about how to use .resx in some other conditions, it should be similiar. You can check them:
- http://support.microsoft.com/default.aspx/kb/917414?p=1
- http://www.jelovic.com/articles/resources_in_visual_studio.htm
BTW, if you want to write log to your own log, you can refer to this link:
Good luck and have a nice day!
Hope this helpful to you! If you have any further quetions, please feel free to let me know.
Please mark the right answer at right time.
Bset Regards,
Tracy- Proposed As Answer by Ter-ray-cy Wednesday, April 28, 2010 9:27 AM
- Marked As Answer by eryangModerator Friday, April 30, 2010 10:14 AM

