Thanks for the reply.
I have done that.
My problem is this:
For example when i want to create a Database object i use the following helper method:
public static Database GetDB(string connStr)
DatabaseProviderFactory CBSDatabaseProviderFactory = new DatabaseProviderFactory(CBSAppBlocksSConfigurationSource); // CBSAppBlocksSConfigurationSource is the custom configuration source.
Database db = CBSDatabaseProviderFactory.Create(connStr);
This retrieves the configuration settings from the custom configuration file and gives me the Database object.
I do not know how to write the helper method to obtain a Membership object which will be constructed using the custom configuration settings in a custom configuration file.
Currently, it is being created using the default configuration file as my client does not have an app.config. (Since my config file is, to borrow Tom Hollander's phrase, owned by my DLL and I want to keep it that way.)
If i move the app settings to the client app.config file, everything works fine.