I have tried the example on the following url but it has given me an error
the app.config file is:
<configuratio n>
<configSections >
<section name="sampleSec tion"
type="System.Co nfiguration.Sin gleTagSectionHa ndler" />
<!--The following code declares a section group called
mySectionGroup. -->
<sectionGroup name="mySection Group">
<section name="mySection "
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<mySectionGroup >
<mySection>
<add key="key1:value 1" />
</mySection>
</mySectionGroup>
</configuration>
And in code the following line generate the error:
System.Configur ation.NameValue SectionHandler, system could not be provided
NameValueCollec tion nvc = (NameValueColle ction)
ConfigurationSe ttings.GetConfi g("mySectionGro up/mySection");
Any idea why doesn't work?
Comment