[Mono-bugs] [Bug 576565] New: Saving custom user settings (from ApplicationSettingsBase) saves erroneous data in .local user.config file
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 3 11:14:12 EST 2010
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: mono-bugs at lists.ximian.com
ReportedBy: jaebird at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list