In a nutshell:
If IIS7 is catching your errors and displaying it's own pages instead of your custom ones (or if your custom pages are returning the correct response code - which they should be) then you need to add this:
Response.TrySkipIisCustomErrors = true;
Check this page for more information: http://csharpfeeds.com/post/11059/IIS_7_Error_Pages_taking_over_500_Errors.aspx
Leave a Comment
Comments