Merging Multiple Configuration source

Topics: Exception Handling Application Block
Mar 18, 2011 at 10:56 AM


Merge configuration settings that are stored in different config files for various enterprise library blocks.

How can the above requiremen be achieved.



Mar 18, 2011 at 11:10 AM

You can make use of the configSource attribute which allows you to reference a config file for a specific configuration section.  For example, if you stored your validation rules in a separate config file named validation.config, you can reference it from the default config file of your application thru:

<validation configSource="validation.config" />

Note that the you can only specify a relative path in the configSource attribute.

If this won't be enough for the scenario you're trying to achieve, check out this topic from the documentation?


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.