SC9.1 but tested in 8.2 also.

I have been using my tried and true httpError config for capturing 500 errors to a static file. I was setting it up for a new client and I thought changing the connection string would be a good test. But once I did, I got a hard server error below. By change I mean I changed the web database connection string to webXX.

Server Error in '/' Application. Runtime Error Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.

I updated the IgnoreUrlPrefixes with my 500.html page and the httpsErrors section below. I can't even render an html page, jpg, nothing with a broken connection string.

<httpErrors errorMode="Custom" existingResponse="Auto">
  <remove statusCode="403"/>
  <remove statusCode="404"/>
  <remove statusCode="500"/>
  <error statusCode="500" responseMode="File" path="/500.html"/>
  <error statusCode="403" responseMode="File" path="/404.html"/>
  <error statusCode="404" responseMode="File" path="/404.html"/>

<customErrors mode="On" defaultRedirect="500.htm" >
  <error statusCode="500" redirect="500.html" />
  <error statusCode="404" redirect="500.html" />

It appears with Sitecore there are things you can do that completely shutdown IIS.

Any way around this? If IIS can't even render a 500 page, there isn't much hope of redirecting a 500 page on error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.