Menu

#2 Configuration problem

open
nobody
None
5
2003-05-14
2003-05-14
Anonymous
No

I believe there is a bug in ConnectionFactories.cs and
DataAdapterFactories.cs when a ConfigSection prefix is
specified.

Since the property ConfigSection delegates to
FactoriesHelper.ConfigSection, the section prefix is
being added twice in the LoadFromConfig method.

static private void LoadFromConfig() {
FactoriesHelper.LoadFromConfig(_factories,
typeof(IDbConnectionFactory), ConfigSection +
ConnectionFactoriesSectionName);
}

Since ConfigSection is being prepending in
ConnectionFactories and DataAdapterFactories and it is
also being prepending in FactoriesHelper,

object configF = ConfigurationSettings.
GetConfig(ConfigSection + sectionName);

the prefix is being added twice which presents it from
being resolved.

thanks,
Craig

Discussion


Log in to post a comment.

MongoDB Logo MongoDB