473,563 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App.Config - Saving Configuration Error

Hello,

I have been searching the net, MSDN, google groups and can't seem to
find anything about what is happening to me.

I have developed a application using VB.Net 2.0 and deploy it using
ClickOnce over a private network. I use AppSettings.Get ("") to
retrieve values form my app.config and I use
AppSettigns.Set tigns("").value = value to set values.

This has been working fine for a long time (10 months). All of a
sudden I am now coming across errors when I try to save the
configuration. This is how I save it:

Dim config As Configuration =
ConfigurationMa nager.OpenExeCo nfiguration(Con figurationUserL evel.None)

config.AppSetti ngs.Settings("" ).Value = newValue
'9-12 more settings set
' Save app.Config file
config.Save(Con figurationSaveM ode.Full, True)

When I call this method I get a "An extension of name
'clientCredenti als' already appears.. Extension names must be
unique... line 237"

At line 237 is information that is not in my normal app.Config file
when i develop. My Config file is less that 100 lines. It seems
the .net framework uses the app.Config for it's own settings also.

The 'clientCredenti als' is found in a section below my "AppSetting s"
in a tag
<system.service Model>
<extensions>
<behaviorExtens ions>
<add name='clientCre dentionsl.....>

I have no idea where this came form or why it would try to create a
send one or what but I have no idea what to do or proceed.

Any help would be appreciated,
Jordon
Mar 6 '08 #1
0 1169

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

Similar topics

2
9551
by: Anatoly | last post by:
I'm trying to use VB.NET's 2003 ConfigurationSettings.AppSettings.Set() method of updating values but getting error "Collection is read-only". How can I change values of keys in the App.config file programatically? Here is my code: Imports System.Configuration Imports System.Collections.Specialized
0
1830
by: Søren Lund | last post by:
Hello, I have implemented a custom config section handler by implementing the IConfigurationSectionHandler interface. I have registered this handler in web.config and everything works fine ... for a while. At random points in time my section handler stops working and throws the exception: Configuration Error Description: An error...
2
312
by: Anatoly | last post by:
I'm trying to use VB.NET's 2003 ConfigurationSettings.AppSettings.Set() method of updating values but getting error "Collection is read-only". How can I change values of keys in the App.config file programatically? Here is my code: Imports System.Configuration Imports System.Collections.Specialized
0
2214
by: vikramp | last post by:
Hi, I am storing theme in web.config using <pages theme="mytheme"/>. I am then using the following code to read it from my webpage: Configuration config = WebConfigurationManager.OpenWebConfiguration("~"); PagesSection section = (PagesSection)config.GetSection("system.web/pages"); string currenttheme = section.Theme;
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.