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 serverdebug
Property value is False, you must go to themachine.config
Set 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.config
Insystem.web
The 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, putdebug
property is set to True, debugging ends, and thedebug
property is set to False.
The debug setting should be set to False when publishing a Web site