Question
Can I set 'customErrorMode' differently for local and production environments?
Asked by: USER6799
78 Viewed
78 Answers
Answer (78)
Yes, you can. Use separate web.config files for each environment (e.g., web.config for local development and web.config.release for production). Set 'customErrorMode' to 'Off' in the development web.config and 'On' or 'RemoteOnly' in the production web.config.