http://bugzilla.novell.com/show_bug.cgi?id=576565
http://bugzilla.novell.com/show_bug.cgi?id=576565#c0 Summary: Saving custom user settings (from ApplicationSettingsBase) saves erroneous data in .local user.config file Classification: Mono Product: Mono: Class Libraries Version: 2.4.x Platform: Other OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Configuration AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=340485) --> (http://bugzilla.novell.com/attachment.cgi?id=340485) sample app to reproduce the problem Description of Problem: When using a custom user config file derived from ApplicationsSettingsBase any saving of the settings produces a user.config file which is invalid. Attached is a sample app that demonstrates this issue and the output from the app on both .net and mono. A couple of observations: 1. The mono version of the .local user.config file is much larger and includes the configSections 2. The AppConfig key/vals of AppName and AppID erroneously exist in the userSettings section of the .local user.config file Running the app more than once will cause app crashes as it finds duplicate AppName: Unhandled Exception: System.Configuration.ConfigurationErrorsException: Failed to load value for 'AppName'. ---> System.ArgumentException: Key duplication when adding: AppName -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
