Configuration Disfiguration
by Jake Vinson
in Feature Articles
on 2007-05-17
In .NET, there are generally two types of information in config files: application-specific and environment-specific. The problem with this setup, though, is managing changes to configuration parameters; it's up to the developer to remember to update config files for each environment.
Fortunately, parameters can be easily overridden using the configSource element in web.config, eliminating the need to manually change files for each deployment, not to mention reducing the risk of having to recreate a config file after accidentally overwriting one. Of course, we're talking about software development here, where the simplest solution is often ignored.