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?
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:
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.