protected void Application_Error(object sender, System.EventArgs e) { var errorHandler = new MvcApplicationErrorHandler(application: this, exception: this.Server.GetLastError()) { EnableHttpReturnCodes = false, PassThroughHttp401 = false }; errorHandler.Execute(); }
protected void Application_Error(object sender, System.EventArgs e) { var errorHandler = new MvcApplicationErrorHandler(application: this, exception: this.Server.GetLastError()) { EnableHttpReturnCodes = true, PassThroughHttp401 = false }; errorHandler.Execute(); }