Asp. The application configuration in net

Source: Internet
Author: User
Tags config parent directory root directory
Asp.net| program ASP. NET configuration uses a hierarchical configuration architecture. Asp. NET is included in the configuration file, which is Config.web and is located in the same directory as the application file. The subdirectory drops the settings of the parent directory unless the config.web file within the subdirectory overrides the parent directory settings.
The Config.web file provides a corresponding section for each of the major asp.net functions.
The security content in the Config.web file looks like this:
<security>
<authentication mode= "[Windows/cookie/passport/none]" >
<cookie cookie= "[name]" loginurl= "[url]" decryptionkey= "[key]" >
<credentials passwordformat = "[Clear,shal,md5]" >
<user name= "[Username]" password= "[Password]"/>
</credentials>
</cookie>
<passport redirecturl= "Internal"/>
</authentication>
<authorization>
<allow users= "[Comma separated list of users]" roles= "[comma separated list of roles]"/>
<deny users= "[Comma separated list of users]" roles= "[comma separated list of roles]"/>
</authentication>
<identity>
<impersonation enable = "[True/false]"/>
</identity>
</security>
This part is mainly divided into three parts:
» Certifications
» Licensing
» Identity
You can set the value of each element by overwriting the corresponding part of the computer hierarchy configuration file with a similar part of the application configuration file in the application's root directory. All subdirectory drops are automatically inherited, but subdirectories can also have their own configuration files by overwriting the settings of their parent directory.




Related Article

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.