ASP. NET Configuration

Source: Internet
Author: User
Tags configuration settings
Summary:
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/cpguide/html/cpconaspnetconfiguration. asp

Processing Applications

Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/cpguide/html/cpconconfiguringnetframeworkapplications. asp

Format of ASP. NET configuration files

Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/cpguide/html/cpconformatofconfigurationfiles. asp

1. configuration information between the tags is grouped into two main areas: The configuration section handler declaration Area And The configuration section Settings area .
2. Configuration section handler declarations -- appear at the top of the configuration file <Configsections> And </Configsections> Tags. Each declaration contained in <Section> Tag specifies the name of a section that provides a specific set of configuration data and the name of the. NET Framework class that processes configuration data in that section.
The configuration section Settings area -- follows <Configsections> Area and Contains the actual configuration settings. There is one configuration section for each declaration in <Configsections> Area. Each configuration section contains subtags with attributes that contain the settings for that section.
3. sample:

 
<Configuration> <configsections> <section name = "etettings" type = "system. configuration. namevaluefilesectionhandler, system, version = 1.0.3300.0, culture = neutral, publickeytoken = b77a5c561934e089 "/> <section name =" sessionstate "type =" system. web. sessionstate. sessionstatesectionhandler, system. web, version = 1.0.3300.0, culture = neutral, publickeytoken = canonical "allowdefinition =" machinetoapplication "/> </configsections> <appsettings> <add key =" DSN "value =" localhost; uid = myusername; Pwd =; "/> <add key =" msmqserver "value =" Server \ myqueue "/> </receivettings> <sessionstate cookieless =" true "timeout =" 10 "/> </Configuration>
 
 
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.