protected void Application_Error(object sender, EventArgs e) { var exception = Server.GetLastError(); Log.Error("Unexpected error.", exception); }