[Mono-winforms-list] Exception retrieving User application setting

Eric Albright albright at wesay.org
Wed Nov 21 18:59:18 EST 2007


Happens for me in 1.2.5.

Eric

Jonathan Pobst wrote:
> File a bug.  Is this new to 1.2.6 or does it fail on 1.2.5 as well?  I 
> don't think anyone has done any work on configuration in quite some time.
>
> Thanks!
> Jon
>
> Andrus wrote:
>   
>> Trying to retrieve user application settings causes exception.
>>
>>  How to fix ?
>>
>>  Andrus.
>>
>>  MONO 1.2.6 preview 2
>>  .NET 2 profile
>>  Windows XP
>>
>>  System.Configuration.ConfigurationException: Duplicate element in 
>> collection
>>  ()
>>   at System.Configuration.ConfigurationElementCollection.BaseAdd
>>  (System.Configuration.ConfigurationElement element, Boolean throwIfExists)
>>  [0x00000]
>>   at System.Configuration.ConfigurationElementCollection.BaseAdd
>>  (System.Configuration.ConfigurationElement element) [0x00000]
>>   at
>> System.Configuration.ConfigurationElementCollection.OnDeserializeUnrecognizedElement
>>  (System.String elementName, System.Xml.XmlReader reader) [0x00000]
>>   at System.Configuration.ConfigurationElement.DeserializeElement
>>  (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x00000]
>>   at System.Configuration.ConfigurationSection.DeserializeSection
>>  (System.Xml.XmlReader reader) [0x00000]
>>   at System.Configuration.Configuration.GetSectionInstance
>>  (System.Configuration.SectionInfo config, Boolean createDefaultInstance)
>>  [0x00000]
>>   at System.Configuration.ConfigurationSectionCollection.get_Item
>>  (System.String name) [0x00000]
>>   at
>>  System.Configuration.ConfigurationSectionCollection+<>c__CompilerGenerated0.MoveNext () [0x00000]  at System.Configuration.CustomizableFileSettingsProvider.LoadProperies (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite) [0x00000]  at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x00000]  at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000]  at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00000]  at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0
>>     
> x00
>   
>>  000]  at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00000]  at MyApp.Windows.Forms.Properties.Settings.get_Server () [0x00000]  at MyApp.Windows.Forms.UserLoginForm.InitializeComponent () [0x00000]  at MyApp.Windows.Forms.UserLoginForm..ctor () [0x00000]  at (wrapper remoting-invoke-with-check) MyAppWindows.Forms.UserLoginForm:.ctor ()  at MyApp.AppMainEntry.Main () [0x00000]
>> _______________________________________________
>> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
>>
>>     
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
>
>   




More information about the Mono-winforms-list mailing list