Is there a way to globally handle exceptions for a Windows Service? Something similar to the following in Windows Forms applications:
Application.ThreadException += new ThreadExceptionEventHandler(new ThreadExceptionHandler().ApplicationThreadException);
Here is some pretty robust code we advise people to use when they’re implementing http://exceptioneer.com in their Windows Applications.
Thanks,
Phil.