Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Custom errors in IIS and application's web.config

$
0
0

Hi,

I have an ASP.NET MVC4 application installed on IIS 7.5.

In the application's web.config, I define the custom error pages like this.

<system.web><customErrors mode="RemoteOnly" defaultRedirect="~/Errors/General"><error statusCode="403" redirect="~/Errors/Http403" /><error statusCode="404" redirect="~/Errors/Http404" /><error statusCode="500" redirect="~/Errors/Http500" /></customErrors></system.web>

When I go to inetmgr.exe, go to application and click on 'Error Pages', I don't see these settings. I see the default IIS settings where errors are mapped to %SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>\500.htm.

What is the difference in setting the custom errors in IIS and application's web.config?

Should custom errors be set per-machine and not per-application?

Thanks and Regards,

krishna


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>