Error handling in IIs 7

Not a new topic but I come across a situation when our offshore team was not able to see the error details. This is reminder if someone forgets that.

In IIS 7.0 The <httpErrors> element allows you to configure custom error messages for your Web site or application. <CustomErrors> won't work.

Click for further details on httperrors

httpError Elements

EPiServer Error handling

Example Production Enviornment Settings
<httpErrors errorMode="Custom" existingResponse="Replace">
      <error statusCode="404" path="/Page404.html" responseMode="ExecuteURL"/>
      <error statusCode="500" path="/500-error-page.html" responseMode="ExecuteURL"/>
</httpErrors>

Developers Environment Settings:
With Settings
<httpErrors errorMode="Custom" existingResponse="Replace"></httpErrors>
Error Details on screen will be like this



With Settings
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Replace"></httpErrors>
Error Details on screen will be like this

With Settings
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto"></httpErrors>
Error Details on screen will be like this

Comments

Popular posts from this blog

POC custom pricing provider works

EPiServer CMS 11 Useful SQL Queries - 1

EPiServer CMS 11 Useful SQL Queries - 2