In my web application, I have one way async WCF. In this service, I want to catch all exceptions, as I do in global.asax Application_Error. I tried to handle these events:
AppDomain.CurrentDomain.UnhandledException += (s,e) => { //some logic }; AppDomain.CurrentDomain.FirstChanceException += (s,e) => { //some logic };
even tried:
//this one is for Win Forms Application Application.ThreadException += (s,e) => { //some logic };
and
//this one is for Web Application HttpContext.Current.ApplicationInstance.Error += (s,e) => { //some logic };
But not one of these handlers has been reached.
Any ideas what else I can try?
source share