[Mono-bugs] [Bug 526237] New: Type 'System.Configuration.SingleTagSectionHandler' not found.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 29 03:38:58 EDT 2009


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


           Summary: Type 'System.Configuration.SingleTagSectionHandler'
                    not found.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: reneziller at sbg.at
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR
3.5.21022)

Trying Access to Configurationinformation via
'System.Configuration.SingleTagSectionHandler', i get this exception:

 [System.Configuration.ConfigurationErrorsException] Type
'System.Configuration.SingleTagSectionHandler' not found.

Reproducible: Always

Steps to Reproduce:
1.
create a app.config file like:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="Sample" type="System.Configuration.SingleTagSectionHandler"
/>
  </configSections>
  <Sample Test="Example A" />
</Configuration
2.
Try Accessing like:
ConfigurationManager.GetSection("Sample")
Actual Results:  
Getting the following Exception (incl. stacktrace):
 [System.Configuration.ConfigurationErrorsException] Type
'System.Configuration.SingleTagSectionHandler' not found.
  at System.Configuration.InternalConfigurationHost.GetConfigType
(System.String typeName, Boolean throwOnError) [0x0002b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\InternalConfigurationHost.cs:77 
  at System.Configuration.ConfigInfo.CreateInstance () [0x0000b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\ConfigInfo.cs:50 
  at System.Configuration.SectionInfo.CreateInstance () [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\SectionInfo.cs:63 
  at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo config, Boolean createDefaultInstance)
[0x00022] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\Configuration.cs:261 
  at System.Configuration.ConfigurationSectionCollection.get_Item
(System.String name) [0x00032] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\ConfigurationSectionCollection.cs:68 
  at System.Configuration.Configuration.GetSection (System.String path)
[0x0001b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\Configuration.cs:234 
  at
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\ClientConfigurationSystem.cs:63 
  at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4.2.3\mcs\class\System.Configuration\System.Configuration\ConfigurationManager.cs:162 

Expected Results:  
Return an Hashtable, in the excample above, with 1 Entry Test:"Example A"

I'm trying to run an VB.NET 2.0 App developed and compiled with MS Visual
Studio 2008.

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