protected void Application_Error() { var exception = Server.GetLastError(); if (exception != null) { LoggerInstance.Fatal(exception, "Application error"); } }