473,466 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create 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.Settigns("").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 =
ConfigurationManager.OpenExeConfiguration(Configur ationUserLevel.None)

config.AppSettings.Settings("").Value = newValue
'9-12 more settings set
' Save app.Config file
config.Save(ConfigurationSaveMode.Full, True)

When I call this method I get a "An extension of name
'clientCredentials' 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 'clientCredentials' is found in a section below my "AppSettings"
in a tag
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name='clientCredentionsl.....>

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 1159

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

Similar topics

2
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...
0
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 ......
2
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...
0
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 =...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.