Hi,
I've got an ASP.NET MVC application that is supposed to catch all unhandled exceptions within the global.asax application error handler.
If I define the handler as follows:
protected void Application_Error(object sender, EventArgs e)
then it works fine. However, if within the Application_Start event I try and do:
this.Error +=new EventHandler(Application_Error);
The actual event is never called.
Does anyone know why and if so what i'm doing incorrectly?
Thanks!