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