With ASP. NET, you can specify configuration settings that affect all Web applications on the server, affect only individual applications, affect individual pages, or affect individual folders in a Web application. You can configure settings for features such as compiler options, debugging, user authentication, error message display, connection string, and so on.
The configuration data is stored in an XML file named Web. config.
The main configuration settings that you can make in the Web. config file are: 1. configuration file section 2. Modify the configuration file 3. configuration file Hierarchy 4. Deployment configuration file
I. configuration file Section
Configuration files are grouped into nodes that contain settings for each feature
Compile
In order to use an application to service Web requests, ASP. NET must first compile the application into one or more assemblies.
You can use the compilation configuration section to configure the configuration that ASP. NET needs to compile the Web application. Here are some of the features you can specify:
1.Debug: During the development phase, the debug feature can be set to true to generate the symbols required for debugging, which makes it easy to debug the program. At the end of the development cycle, you can set the debug attribute to False to optimize performance.
2.targetFramework: This attribute specifies the version of the destination. NET framework for the site. only. NET FrameWork4 and later versions contain this attribute. VS uses this feature to ensure that your project uses only the features available in the target Framework version.
ASP. NET Web Configuration Guide