Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Unrecognized configuration section

Reply
 
Old 10-29-2008   #1 (permalink)
Michael Conroy


 
 

Unrecognized configuration section

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?

Thanks,
Mike

My System SpecsSystem Spec
Old 10-29-2008   #2 (permalink)
Jeroen Mostert


 
 

Re: Unrecognized configuration section

Michael Conroy wrote:
Quote:

> 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.
My System SpecsSystem Spec
Old 10-29-2008   #3 (permalink)
Michael Conroy


 
 

Re: Unrecognized configuration section

Jeroen,

Thanks for the response. I will check that... but I'm using a plain old
user setting of type StringCollection. Maybe there's a problem with that? I
created the setting with the standard IDE. I don't do anything other than
add and remove from the StringCollection by referencing it, tweaking as
necessary, and then calling "Save" on the setting.

Does any of that sound spooky?

Cheers,
Mike

"Jeroen Mostert" wrote:
Quote:

> Michael Conroy wrote:
Quote:

> > 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.
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
unrecognized file Vista General
slmgr.vbs -ckms gives Unrecognized Option Error Vista installation & setup
SATA Drive unrecognized in Vista Ultimate Vista hardware & devices
IE 7 Unrecognized by websites and programs PowerShell
Unrecognized partitions in Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46