also this line was added automatically by Visual Studio:
Should I turn it to debug=”false” in the release web.config?
Many thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should set customErrors to
OnorRemoteOnly. The latter would mean that anyone using the local machine will see the full error page, but any outside users won’t. The less information outside users have about how your web application works, the better. You could do something like this:You can also give a bit more specific information about the error users.
For production, you should set
Debugto false.Reasons on why Debug should be set to false can be read about here.