共用方式為


How we see different error message from the web browser

We always see different error message from the browser. There are four kinds of error pages listed as below. Here I will clarify which kind of error message will be returned under different configuration.

1. Custom page

clip_image002

2. IIS error info

clip_image004

3. ASP.NET error info

clip_image006

4. Hide detailed error

clip_image007

The <httpErrors> element allows you to configure custom error messages for your Web site or application from IIS level. Custom error messages let you provide a friendly or a more informative response by serving a file, returning another resource, or redirecting to a URL when visitors to your site cannot access the content they requested. Please refer to https://www.iis.net/configreference/system.webserver/httperrors

customErrors is the configuration at the ASP.NET level. Please refer to https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.100).aspx

Custom error only focus on if the detailed error message returned from asp.net. If custom error is set to off, we will not see the detailed asp.net errorinfo.

Httperrors focus on if returns the custom error info or return the detailed error info. The existing mode focus on if returns the iis error info or asp.net error info. The 54 kinds of combinations is listed as below for your reference.

image

image

Best Regards,

Charles Liang from GBSD DSI Team

Comments

  • Anonymous
    May 12, 2014
    Service UnavailableHTTP Error 503. The service is unavailable.