External Configuration file for Custom Group and Section

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top