Michael Conroy wrote:
> I added a user setting to my app. When I install it, I get:
>
> "Configuration system failed to initialize. Unrecognized configuration
> section userSettings)"
>
> The path to the file is correct... I open the XML file and there's stuff
> there, the namespace looks good too.
>
> Any ideas why this isn't as simple as it seems?
> For some reason you're missing this section at the top of your configuration
file, or it's damaged somehow:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings"
type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
</sectionGroup>
...
This shouldn't happen if you use the designer or the documented APIs to add
these settings, but it can easily happen if you use custom code.
--
J.