[Mono-bugs] [Bug 405574] New: ConfigurationManager. OpenExeConfiguration incompatibility with .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 1 19:03:46 EDT 2008


           Summary: ConfigurationManager.OpenExeConfiguration
                    incompatibility with .NET
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: i386
        OS/Version: SLES 10
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Configuration
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: christian.hergert at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Third Party Developer/Partner

In the returned Configuration object from
"ConfigurationManager.OpenExeConfiguration", .NET has a filename associated
while mono does not. I've included a simple test case and results from mono svn
and .net.

using System;
using System.Configuration;

namespace Test
        public class TestClass
                static void Main ()
                        System.Configuration.Configuration config = null;
                        config = ConfigurationManager.OpenExeConfiguration
                        Console.WriteLine ("\"{0}\"", config);
                        Console.WriteLine ("\"{0}\"", config.FilePath);

compile with
$ gmcs test.cs -r:System.Configuration.dll

Output on Mono JIT compiler version 1.9 (/trunk/ r104605)

 chergert at chris-desktop:/tmp$ /opt/mono/bin/mono test.exe 

Output on .NET

 C:\Documents and Settings\chergert\Desktop>test
 "C:\Documents and Settings\chergert\Desktop\test.exe.config"

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