[Mono-bugs] [Bug 579836] New: System.Configuration.Save() method does not work as expected

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 14 09:02:13 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=579836

http://bugzilla.novell.com/show_bug.cgi?id=579836#c0


           Summary: System.Configuration.Save() method does not work as
                    expected
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: 32bit
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: test051102 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7)
Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

When using System.Configuration.Save() to simply store a previously opened
Web.config file, alle comments inside the file will be stripped off as well as
some line breaks.

Reproducible: Always

Steps to Reproduce:
1. Create a Web Application using Visual Studio 2008
2. Put a Label onto the default web form
3. Enter the following code in the Page_Load() method of Default.aspx.cs
   Configuration config = WebConfigurationManager.OpenWebConfiguration("~/");
   config.Save();

Actual Results:  
The resulting Web.config file is kind of crippled and very difficult to read by
a human.

Expected Results:  
Under Windows XP / IIS the resulting Web.config is exactly the same as before!

-- 
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