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>