Previous Topic

Next Topic

Book Contents

Turn off customErrors

To prevent sensitive information from being released, customErrors in the web.config file must be turned off. This ensures that the stack trace of an error is not shown publicly.

<customErrors mode="Off" />

The setting is off by default. If you customize the file, verify that the value is set to "Off" before deploying to production.

Send Feedback