October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can place particular configuration sections in an external file. You might want to do this for a couple of reasons. First, you can make a configuration file more manageable by dividing it into multiple files. Also, when you place configuration information in a separate file, you can prevent application restarts when you change a configuration setting.
Every configuration element includes a configSource attribute. You can assign a path to a file as the value of the configSource attribute. For example, the web configuration file in Listing 34.6 uses the configSource attribute in its <appSettings> element.
Listing 34.6. Web.config
The appSettings are stored in the external file, as shown in ...
Read now
Unlock full access