I created a new MVC application directly from the box in VS2010. In Home Controller I have the following:
[handler (see = "error")) Public ActionRashult Index () {int number1 = 0; Int number 2 = 5; Int results = num2 / num1; See Return (); } This creates an error and a debug pop up, and then if I continue on a yellow screen I can not redirect it to the Error.aspx page. I have the web Configure:
& lt; CustomErrors mode = "at" defaultRedirect = "~ / error.aspx" & gt; & Lt; / CustomErrors & gt; But despite this being a new project, it will not redirect to the correct error page. Please configure how to configure it ????
Thanks
This is discussed in the MVC overview tutorial. The behavior of IIS errors depends on your version of IIS.
Comments
Post a Comment