void Application_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); if (exc.GetType() == typeof(HttpException)) { Server.Transfer("~/ErrorPages/404.aspx"); } Response.Write("<h2>Global Page Error</h2>\n"); Response.Write("<p>" + exc.Message + "</p>\n"); Response.Write("Return to the <a href='~/View/CarFinder.aspx'>" + "Home Page </a>\n"); ExceptionUtility.Equals(exc, "Default Page"); ExceptionUtility.NotifySystemOps(exc); Server.ClearError(); }