Windows Vista Forums

Unrecognized configuration section
  1. #1


    Michael Conroy Guest

    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

  2. #2


    Jeroen Mostert Guest

    Re: Unrecognized configuration section

    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.

      My System SpecsSystem Spec

  3. #3


    Michael Conroy Guest

    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:

    > 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.
    >

      My System SpecsSystem Spec

Unrecognized configuration section problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unrecognized USB Device Sir Eni General Discussion 1 11 Oct 2009
unrecognized file John Vista General 5 29 Jan 2008
Unrecognized message 0xC03B received in VS 6.0 application Kak Vista installation & setup 0 18 May 2007
IE 7 Unrecognized by websites and programs RAPMANNEEDSHELP PowerShell 0 04 Mar 2007
Unrecognized partitions in Vista pimu Vista General 2 07 Aug 2006