Key/Value settings certainly can be helpful in many circumstances, but settings simply aren't flexible enough for robust or complex components or settings. The following XML element is an example of a setting contained within : The web.config file does allow you to set custom settings with the element, but it doesn't allow anything other than simple key/value pairs. But many more developers find they need to control a broader collection of settings - either for components (written by themselves or a third party), or simply a set of values they find themselves using throughout their application.
For some developers, sticking solely with the settings provided by the. NET Framework provides a wide variety of settings that can be configured within web.config to modify the behavior of one or more built-in components within the application. This tutorial was first published in November, 2012. Every few weeks, we revisit some of our reader's favorite posts from throughout the history of the site.