The debug setting should be set to False when publishing a Web site

Source: Internet
Author: User

There is such a node in the Web.config root directory of the ASP. NET project:

<compilation debug="true" targetframework="4.5" />

In the development phase, this can be set. When the site is deployed to the server, it must debug be set to False, as follows:

<compilation debug="false" targetframework="4.5" />

If you want to have all the items on the serverdebugProperty value is False, you must go to themachine.configSet in.

32-bit PC Machine.config is located in:%windir%\microsoft.net\framework\[version]\config\machine.config
64-bit PC Machine.config is located in:%windir%\microsoft.net\framework64\[version]\config\machine.config

Inmachine.configInsystem.webThe following settings are set under the node:

<configuration>
    <system.web>
          <deployment retail= "true"/>
    </system.web>
</configuration>

In short, when you need to debug, track errors, putdebugproperty is set to True, debugging ends, and thedebugproperty is set to False.

The debug setting should be set to False when publishing a Web site

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.