Turn off IIS8 custom errors

Published on 2024-11-23 by Raul

Since IIS8, it's not enough to change customErrors=Off to show the error content. There's an extra step to accomplish.

So, here's the changes you  need to make to your web.config to show the errors:

<system.web>
   <customErrors mode="Off" />
</system.web>
<system.webServer>
   <httpErrors existingResponse="PassThrough" errorMode="Detailed">
</system.webServer>

 


Keep in touch


About

Hey there, I'm Raul, owner of CreativeCLR, a small consulting company.

Feel free to drop me any question you might have on this post using the comment section or the contact page.