[Mono-osx] ConfigurationErrorsException loading user settings (duplicate key)

zidjian 1 at uli-morgner.de
Tue Nov 18 08:46:44 EST 2008


Hi all,

I have daveloped an .NET Application with Visual Studio 2005 and was trying
to launch it on MACOSX using mono.
Anyhow the application cannot load the configuration file correctly and says
the configuration has duplicate entries althought it hasn't.

Hope anybody can help me out here, as I couldn't find something on web
according to this problem.

Here is the StackTrace:

Unhandled Exception: System.Configuration.ConfigurationErrorsException:
Failed to load value for 'setting1'. ---> System.ArgumentException: Key
duplication when adding: setting1
  at System.Collections.Hashtable.PutImpl (System.Object key, System.Object
value, Boolean overwrite) [0x00137] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/corlib/System.Collections/Hashtable.cs:814 
  at System.Collections.Hashtable.Add (System.Object key, System.Object
value) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/corlib/System.Collections/Hashtable.cs:459 
  at System.Configuration.SettingsPropertyValueCollection.Add
(System.Configuration.SettingsPropertyValue property) [0x00011] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/SettingsPropertyValueCollection.cs:52 
  at System.Configuration.CustomizableFileSettingsProvider.LoadPropertyValue
(System.Configuration.SettingsPropertyCollection collection,
System.Configuration.SettingElement element, Boolean allowOverwrite)
[0x0007c] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:697 
  --- End of inner exception stack trace ---
  at System.Configuration.CustomizableFileSettingsProvider.LoadPropertyValue
(System.Configuration.SettingsPropertyCollection collection,
System.Configuration.SettingElement element, Boolean allowOverwrite)
[0x0008e] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:699 
  at System.Configuration.CustomizableFileSettingsProvider.LoadProperties
(System.Configuration.ExeConfigurationFileMap exeMap,
System.Configuration.SettingsPropertyCollection collection,
ConfigurationUserLevel level, System.String sectionGroupName, Boolean
allowOverwrite, System.String groupName) [0x00085] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:721 
  at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection collection) [0x00042] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:751 
  at System.Configuration.LocalFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection properties) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/LocalFileSettingsProvider.cs:68 
  at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider
(System.Configuration.SettingsProvider provider) [0x00062] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:192 
  at System.Configuration.ApplicationSettingsBase.set_Item (System.String
propertyName, System.Object value) [0x00060] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:245 
  at Codearts.CAM2.GUI.Properties.Settings.set_testMode (Boolean value)
[0x00000] 
  at Codearts.CAM2.GUI.StartGUI.Main (System.String[] args) [0x00000] 

-- 
View this message in context: http://www.nabble.com/ConfigurationErrorsException-loading-user-settings-%28duplicate-key%29-tp20559897p20559897.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list