Environmental Overrides Adds Unexpected dataconfiguration Section

Topics: General discussion
Mar 3, 2007 at 1:37 AM
This is a bit peculiar:

Main Config File:

<configuration>
  <configSections>
  </configSections>
  <appSettings>
    <add key="EmailAddress" value="test@test.com" />
  </appSettings>
</configuration>

Delta File ( Only Overriding Email Address ):

<configuration>
    <configSections>
        <section name="EnvironmentMergeData" type="Microsoft.Practices.EnterpriseLibrary.Configuration.EnvironmentalOverrides.Configuration.EnvironmentMergeSection, Microsoft.Practices.EnterpriseLibrary.Configuration.EnvironmentalOverrides, Version=2.9.9.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </configSections>
    <EnvironmentMergeData environmentName="Production" environmentDeltaFile="Production.config">
        <mergeElements>
            <override nodePath="/Application Settings/EmailAddress" overrideProperties="true">
                <overridddenProperties>
                    <add name="Value" value="test2@test.com" />
                </overridddenProperties>
            </override>
        </mergeElements>
    </EnvironmentMergeData>
</configuration>

Using GUI to Save Merged File shows a dataconfiguration section from out of nowhere:

<configuration>
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.9.9.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </configSections>
  <appSettings>
    <add key="EmailAddress" value="test2@test.com" />
  </appSettings>
</configuration>


Regards,

Dave

_________________________

David Hayden
Microsoft MVP C#