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


           Summary: ApplicationSettingsBase class writes faulty
                    user.config files
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Configuration
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=269077)
 --> (https://bugzilla.novell.com/attachment.cgi?id=269077)
Test case for bug in ApplicationSettingsBase

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5)
Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5

After starting and closing an application which uses the
ApplicationSettingsBase class for saving settings. The application cannot be
started again.

Reproducible: Always

Steps to Reproduce:
1. start and close an application which uses ApplicationSettingsBase (see
attachment)
2. start the application again
3. a System.Xml.XmlException is thrown
Actual Results:  
If System.Configuration.ApplicationSettingsBase.Save() is called a faulty
user.config is created. (see attachment)
Thereby in some of the tags a plus sign appears instead of a dot:
<ConfigurationBug.MainClass+Settings>

Expected Results:  
A correct user.config should be created

If I correct the user.config file manually (replacing
<ConfigurationBug.MainClass+Settings> with
<ConfigurationBug.MainClass.Settings>) the application starts again. Also the
settings are saved and loaded as expected when the program is started or
closed.

I also tried my test case with the current mono version 2.2: Here the same
error occurs when the application is executed the first time. However, after
correcting the user.config file manually, the settings are ignored in future
(standard settings are applied).

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to