External Configuration file for Custom Group and Section

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am getting the following error:

The attribute 'configSource' cannot be specified because its name
starts with the reserved prefix 'config' or 'lock'.

when I implement the following code:

!-- Define the custom configuration sections in the <configSections>
element... -->
<configSections>
<sectionGroup name="customConfigDemo">
<section name="ConfigurationDemo" type="Configuration"/>
</sectionGroup>
</configSections>

<!-- Provide the custom configuration settings OUTSIDE web.config -->
<customConfigDemo configSource="CustomConfigDemo.config" />

Any thought on how to have an external configuration file that is a custom
section is appreciated.
 
Back
Top