[Mono-bugs] [Bug 565601] New: App.config sections supported by Mono 2.4 cause ConfigurationErrorsException in 2.6

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 17 08:39:17 EST 2009


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

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


           Summary: App.config sections supported by Mono 2.4 cause
                    ConfigurationErrorsException in 2.6
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: 64bit
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: apenn at hchb.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6)
Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)

I have a number of Mono apps running under 2.4.3 successfully. When I try to
run several of these under 2.6, I get a
System.Configuration.ConfigurationErrorsException thrown for the following
App.config sections so far:

  <startup>
    <supportedRuntime version="v2.0.50727"/>
  </startup>

..and...

  <system.serviceModel>
    <bindings />
    <client />
  </system.serviceModel>

Did I miss something in the compilation options?

Reproducible: Always

Steps to Reproduce:
1. Configure the app to have one of the above configuration sections. If
System.ServiceModel, just reference the assembly and add the blank
configuration section above.
2. Run the app.

Actual Results:  
Unhandled Exception: System.Configuration.ConfigurationErrorsException:
Unrecognized configuration section <system.serviceModel>
(/usr/local/zenoss/zenoss/ZenPacks/MonoWMI/libexec/MappingServiceCheck.exe.config
line 13)
  at System.Configuration.ConfigInfo.ThrowException (System.String text,
System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed,
Boolean root) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed)
[0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader
reader, System.String fileName) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.Load () [0x00000] in <filename
unknown>:0
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent) [0x00000]
in <filename unknown>:0
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in
<filename unknown>:0
  at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration
(System.Configuration.ExeConfigurationFileMap fileMap, ConfigurationUserLevel
userLevel) [0x00000] in <filename unknown>:0
  at System.Configuration.CustomizableFileSettingsProvider.LoadProperties
(System.Configuration.ExeConfigurationFileMap exeMap,
System.Configuration.SettingsPropertyCollection collection,
ConfigurationUserLevel level, System.String sectionGroupName, Boolean
allowOverwrite, System.String groupName) [0x00000] in <filename unknown>:0
  at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection collection) [0x00000] in
<filename unknown>:0
  at System.Configuration.LocalFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection properties) [0x00000] in
<filename unknown>:0
  at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider
(System.Configuration.SettingsProvider provider) [0x00000] in <filename
unknown>:0
  at System.Configuration.ApplicationSettingsBase.GetPropertyValue
(System.String propertyName) [0x00000] in <filename unknown>:0
  at System.Configuration.ApplicationSettingsBase.get_Item (System.String
propertyName) [0x00000] in <filename unknown>:0


Expected Results:  
Should have parsed the configuration section.

2.6 built from sources on Ubuntu server 9.04.

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