So I've followed the blog post here to try and hold my enterprise library configuration in a separate config file. Specifically I'm trying to keep my connection strings there.
In the Enterprise Library Config Editor I see the connection strings I'm supposed to see however this run time code
foreach (ConnectionStringSettings c in ConfigurationManager.ConnectionStrings)
{
Console.WriteLine(c.ConnectionString);
}
produces none of the connection strings I'm expecting. Am I missing something stupid here? Do I have to call some special method to load up the connection strings at runtime?
UPDATE: It appears that the rest of the enterprise config works correctly, just not Connection Strings. I'm going to use the configSource attribute of the connectionStrings section to specify yet another separate file for connectionStrings.