In ASP. NET, other machines can also see error messages.

Source: Internet
Author: User

In ASP. NET, if the default settings are used, the Exception details can be displayed in the browser only when Excetpion occurs during local access. When other machines access your IIS server, no Exception occurs. Although this mechanism effectively protects the security of the server and ensures that some important information is not leaked, this feature is annoying during the Combined testing in the development phase, the tester may feel inexplicable when an error occurs. How can this problem be solved.

In fact, it is very simple. Just modify the web. config file of ASP. NET. Add the following section to the web tag.

<CustomErrors mode = "Off"/>

Note that the first letter of "Off" here is in uppercase. Do not make mistakes.

Then access your ASP. NET application and expose the error information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.