Tsohost Knowledge Base

How to turn off Windows custom errors

Modified Tuesday 5th May, 2015 at 03:26

Was this helpful?

The <customErrors> section lets you configure what happens when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.

To turn off custom errors, simply add these lines into your web.config file.

-->

<customErrors mode="Off" />

If you already have a custom Errors declaration, or any error page declarations you'll need to remove these lines. Turning off custom errors will help you diagnose most ASP.net coding issues.


windowscustom errorscloud

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. There's no need to wait, click below to start a Live Chat.

Start Live Chat

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. Don't delay, click below to find out how you can get in touch.

Get in Touch