Error page is not getting displayed
NickName:Sunny Ask DateTime:2012-10-03T03:27:30

Error page is not getting displayed

Error page is not getting displayed. Below is my configuration.

[HttpGet]
public ActionResult Index(string name)
{
throw new ArithmeticException();
}

//Handle Error attribute
public override void OnException(ExceptionContext filterContext)
{
//logging
filterContext.ExceptionHandled = true;
base.OnException(filterContext);
}  

<customErrors mode="On" defaultRedirect="~/Error">
      <error statusCode="404" redirect="~/Error/NotFound"/>      
</customErrors>

I have placed "error" and "Notfound" views in "Error" folder. However, "Notfound" view is getting displayed if I type in invalid url. But for the arithmetic exception, default error page is not getting displayed, only blank page is displayed with same url. Could you anyone please suggest.

Copyright Notice:Content Author:「Sunny」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12696930/error-page-is-not-getting-displayed

More about “Error page is not getting displayed” related questions

Error page is not getting displayed

Error page is not getting displayed. Below is my configuration. [HttpGet] public ActionResult Index(string name) { throw new ArithmeticException(); } //Handle Error attribute public override void

Show Detail

Eclipse : Welcome page not getting displayed

I am working on an application which is built on top of Eclipse. Though everything is working fine on windows, Sles 32 and 64 bit, but on SLED 64 bit the Welcome page is not getting Displayed. When...

Show Detail

I have a JSP page and on click of submit of that page the second jsp is not getting displayed

I have a JSP page and on click of submit of that page it goes to the controller and then controller returns another jsp that should be dsplayed on click of the submit button but this jsp is not get...

Show Detail

Custom error page content not displayed properly

I specified custom error page in web.config like this &lt;system.web&gt; &lt;customErrors mode="RemoteOnly" defaultRedirect="/Error.html" /&gt; &lt;/system.web&gt; The custom error

Show Detail

The page cannot be displayed - Refresh Page

sometimes, when navigating to a url, I'm getting an error: The page cannot be displayed I have tried to use _driver.Navigate().Refresh but nothing happens. I have also tried using the followi...

Show Detail

After processing request getting page cannot be displayed

In our application we have a page where we have three options, once we select any of the radio button and submit it will fetch all the email ids stored in a table based on selected option and valid...

Show Detail

superfish horizontal nav bar not getting displayed in the page

I coded horizontal nav with superfish. It working fine when not added to my page. When added to my page its not getting displayed. my page here is the fiddle for navigation demo nav

Show Detail

"In iOS Login page is not displayed at first but when I tilt the phone page fields are getting displayed"

I am facing weird issue while accessing my application from iOS 11, The page does not load completely in the beginning, I can click on objects but not able to see the page background or field label...

Show Detail

Mat error is not getting displayed when using with ngModel

I am using mat error in the below way &lt;mat-form-field appearance=&quot;outline&quot;&gt; &lt;input matInput [ngModel]=&quot;_control.control.value&quot; (ngModelCh...

Show Detail

Custom error page is not being displayed in chrome

Below is my code for JdbsJsp.java &lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt; &lt;%@page import="java.sql.*" errorPage="/ErrorPage.jsp"%&gt; &lt;!DOCTYPE html&am

Show Detail