c# - How to redirect all errors, including 404 -


i'd errors go same error page. did try error tag statuscodes. works fine i'd rather not have specify statuscodes , still have every error go 1 page. problem if remove statuscode entries, 404 goes server's 404 page , not error page.

is there way configure errors go same page?

if understand well, need send errors custom error page, , errors iis7 gives (not program)

this need setup on ii7, can setup web.config (but give instructions ii7) here example

<configuration>    <system.webserver>       <httperrors errormode="detailedlocalonly" defaultresponsemode="file" >          <remove statuscode="500" />          <error statuscode="500"             prefixlanguagefilepath="c:\contoso\content\errors"             path="500.htm" />        </httperrors>    </system.webserver> </configuration> 

reference: http://www.iis.net/configreference/system.webserver/httperrors


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -