ASP. NET Web Configuration Guide

Source: Internet
Author: User
Tags configuration settings

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

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.