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?
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:
BTW, if you want to write log to your own log, you can refer to this link:
Good luck and have a nice day!
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?