473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Oct 29 '08 #1
2 5530
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.
Oct 29 '08 #2
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.
Oct 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: serge calderara | last post by:
dear all, I have problem accessing section group in my configuration application file. I got an error saying thta I can have only one section ???? here is my application configuration looks...
2
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration>...
3
by: Peter Seif | last post by:
I have a PC that has windows 2000 Server ,Microsoft .Net Framework 1.0 installed First time I tried to create a web application and debug it i had the error "unable to debub ..." so i changed the...
1
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
7
by: kai | last post by:
Hi, I have XP Pro and VS2005 final version. I have been running some examples from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this problems: Parser Error Message:...
0
by: toddc612 | last post by:
Hi guys. I'm new to Visual Studio development, so please forgive me ahead of time for my lack of knowledge. I've been given some Visual Studio code that I need to get working on my local...
1
by: Luurs | last post by:
Hi All, I've been using a asp-label in the HTML <headsection for quite some time in order to dynamically generate meta-keywords,-description, css and js references. Though the actual...
3
by: Abel Chan | last post by:
Hi all, I have a 2003 R2 server. When I tried to run a .NET framework 1.1 ASP.NET application, I am getting the following error message: Configuration Error Description: An error occurred...
0
by: thaytu888888 | last post by:
I have a problem when using ASP.NET validator inside a UpdatePanel, i did google and found some helps. I downloaded a new Validator and some codes: <pages> <tagMapping> <add...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.