Do you have generic exception handler in your Global.asax?

Loading last updated info...

Add your code to handle generic exception of your ASP.NET application in Application_Error.

private static readonly ILog log = LogManager.GetLogger(typeof(MvcApplication));
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError().GetBaseException();
    log.Fatal("Unhandled Exception", ex);
}

Figure. Exception handler in Global.asax.cs

Authors

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star