I have a windows service which hosts some wcf services and multithreading has been used there heavily.
I'm using Enterprise Library to log messages, handled and unhandled.
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
Logger.Error("An unhandled exception has been thrown.", (Exception)e.ExceptionObject);
The problem is that randomly my windows service stops on production and I get no log messages saying that the services stopped or what exception details.
I haven't created any new AppDomain explicitly. Shouldn't all the threads run in the same default CurrentDomain? if so, why nothing gets logged when the service stops suddenly?
Thanks in advance.
View Complete Post