Separate config file for Providers

Posted by Vivek on Stack Overflow See other posts from Stack Overflow or by Vivek
Published on 2010-05-19T20:53:31Z Indexed on 2010/05/19 21:30 UTC
Read the original article Hit count: 193

Filed under:
|

Hi,

In a small test project, I currently have the provider sections in the web.config. I want to move that to a separate config file, like providers.config. My current provider instantiation code is like:

   //Get the feature's configuration info
                    ProviderConfiguration pc = (ProviderConfiguration)ConfigurationManager.GetSection(DATA_PROVIDER_NAME);

This code works if the provider info is in web.config, but how to I read this info from another file (like providers.condfig) because it seems that the ConfigurationManager "reads" only web.config file. I may be missing something very simple here :)

Would love to get more inputs on this.

Thanks V

© Stack Overflow or respective owner

Related posts about provider

Related posts about config