PC Review


Reply
Thread Tools Rate Thread

App.Config - Saving Configuration Error

 
 
jordonkraft@gmail.com
Guest
Posts: n/a
 
      6th Mar 2008
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(ConfigurationUserLevel.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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving configuration items in a .config file vs in a database. Mufasa Microsoft ASP .NET 2 2nd May 2007 07:50 PM
System.Configuration.ConfigurationErrorsException saving config file after encrypting with RsaProtectedConfigurationProvider Rory Parore Microsoft Dot NET Framework Forms 0 19th Apr 2007 09:47 AM
Configuration Error in web.config =?Utf-8?B?YWxleDQ0NA==?= Microsoft ASP .NET 4 28th Sep 2005 06:05 AM
Configuration Error - c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Ivan Microsoft ASP .NET 1 21st May 2004 05:18 AM
web.config Configuration Error when deploy Xu ChunMing Microsoft ASP .NET 1 16th Jul 2003 11:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:00 PM.