[Mono-bugs] [Bug 712187] New: ApplicationSettingsBase does not save user settings properly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Aug 14 12:03:23 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=712187

https://bugzilla.novell.com/show_bug.cgi?id=712187#c0


           Summary: ApplicationSettingsBase does not save user settings
                    properly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: All
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: zeno490 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101
Firefox/5.0

A simple class inheriting from ApplicationSettingsBase with only user scope
properties + default values. When calling Save(), the xml file is generated but
the wrong <section name="<wrong here>"/> is generated and under the
<userSettings ../> as well. This prevents the saved user settings to be
reloaded properly when the application restarts. Changing those two things
manually in the xml file to my namespace.settingsclass solves the reloading
issue.

Reproducible: Always

Steps to Reproduce:
1. Create a class that implements ApplicationSettingsBase
2. Create an instance and call the Save() method
3. Restart the application and attempt to load the saved settings
4. The loaded settings are the default values
Actual Results:  
Default values are always loaded

Expected Results:  
The saved values should be loaded

-- 
Configure bugmail: https://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