Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }