To set debug mode for an ASP. NET application, you must edit the application's Web. config configuration file.
Typically, the Web. config file for an ASP. NET application is located at the same URL location as the application.
If the ASP. NET application is in WWW.YKMAIZ.COM/AAA/BBB, the application's Web. config file is typically located in Www.ykmaiz.com/aaa/bbb/Web.config.
Web. config is a file in XML format. You can edit the file using any standard text editor or XML parser.
However, you cannot access the file remotely using a Web browser. For security reasons, ASP. NET configures Microsoft IIS to prevent direct access to the Web. config file through the browser.
If you try to access the configuration file by using a browser, you receive HTTP access error 403 (forbidden).
The Web. config file contains an embedded section marked with some markup. The following example shows a typical Web. config file.
Please find the <compilation> tag. It marks the beginning of the <compilation> section. In this section, you can specify the debug properties.
In the example shown below, Debug is the second property specified in the <compilation> section, but the order does not matter. Property is case sensitive, so be sure to specify "debug" instead of "Debug" or "Debug".
Set Debug to "true" as follows:
<Configuration> <system.web> <compilationDefaultLanguage= "VB"Debug= "true"Numrecompilesbeforeapprestart= " the"> <compilers> <compilerlanguage= "VB; VBScript "extension= ". CLS"type= "Microsoft.visualbasic.vbcodeprovider,system, version=1.0, Culture=neutral, Publickeytoken=ykmaiz" /> <compilerlanguage= "C #; Csharp "extension= ". cs"type= "Microsoft.csharp.csharpcodeprovider,system, version=1.0, Culture=neutral, Publickeytoken=ykmaiz" /> </compilers> <Assemblies><AddAssembly= "ADODB" /> <AddAssembly="*" /> </Assemblies> <Namespaces> <Addnamespace= "system.web" /> <Addnamespace= "System.Web.UI" /> <Addnamespace= "System.Web.UI.WebControls" /> <Addnamespace= "System.Web.UI.HtmlControls" /> </Namespaces> </compilation> </system.web> </Configuration>
ASP. NET will automatically detect any changes made to the Web. config file and apply the new configuration settings. You do not have to reboot or restart the server for the changes to take effect.
An ASP. NET application inherits settings from a higher-level Web. config file in the URL path.
Therefore, if the ASP. NET application is in WWW.YKMAIZ.COM/AAA/BBB, it can be in www.ykmaiz.com/aaa/Web.config instead of the www.ykmaiz.com/aaa/bbb/ Debug= "True" is specified in Web. config.
If you specify debug= "true" in www.ykmaiz.com/aaa/Web.config, this setting affects lower-level paths such as WWW.YKMAIZ.COM/AAA/BBB, WWW.YKMAIZ.COM/AAA/CCC, Www.ykmaiz.com/aaa/ddd ... ), unless you override this setting in a lower-level Web. config file.
A hierarchical profile allows you to change settings for several ASP.
Enabling debug mode will greatly affect the performance of your ASP.
Keep in mind that you want to disable debug mode before you deploy the release version of the application or perform performance measurements.
Asp. NET Optimization Performance method disable debug mode (GO)