views:

11

answers:

0

Is there a way to configure a container in multiple configuration files?

For instance, I want to register types for a container in a web.config file located at the root and also register types for the same container (and others containers) in the web.config file of sub-folders.

And also register other types for others containers in a company.config file in path C:\Company\Framework\Configs.

When I try to do this I get a ConfigurationError stating that the entry for the container has already been added.

EDIT: any suggestions here http://unity.codeplex.com/Thread/View.aspx?ThreadId=23230

any more suggestions for sample code ?