[Mono-bugs] [Bug 52309][Maj] New - mono doesn't seem to recognize the System.Configuration.DictionarySectionHandler in the web.config file

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 17 Dec 2003 14:03:57 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by tkaszuba@hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52309

--- shadow/52309	2003-12-17 14:03:57.000000000 -0500
+++ shadow/52309.tmp.15642	2003-12-17 14:03:57.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 52309
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tkaszuba@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono doesn't seem to recognize the System.Configuration.DictionarySectionHandler in the web.config file
+
+I'm getting an exception when loading the web.config file which contains a 
+custom application section.
+
+The web.config file contains the following:
+
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+    <configSections>
+            <sectionGroup name="mono.aspnet">
+                <section name="acceptEncoding" 
+type="Mono.Http.AcceptEncodingSectionHandler, Mono.Http"/>
+            </sectionGroup>
+            <sectionGroup name="Content">
+                 <section name="Location" 
+type="System.Configuration.DictionarySectionHandler,system, 
+Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, 
+Custom=null"/>
+            </sectionGroup>
+    </configSections>
+
+... 
+
+I get the following exception:
+
+System.TypeInitializationException: An exception was thrown by the type 
+initializer for ICW.Util.Config ---> 
+System.Configuration.ConfigurationException: Cannot get Type for 
+System.Configuration.DictionarySectionHandler,system, Version=1.0.3300.0, 
+Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null()in 
+<0x0014b> System.Configuration.ConfigurationData:GetHandler (string)in 
+<0x00029> System.Configuration.ConfigurationData:GetConfigInternal (string)
+in <0x0006b> System.Configuration.ConfigurationData:GetConfig (string)in 
+<0x00025> System.Configuration.DefaultConfig:GetConfig (string)in 
+<0x0003d> System.Configuration.ConfigurationSettings:GetConfig (string)in 
+<0x00026> Inteligo.Util.WebConfig:.ctor (string)in <0x00038> 
+ICW.Util.WebConfigMailing:.ctor ()in <0x0001c> ICW.Util.Config:.cctor ()---
+ End of inner exception stack trace ---in (unmanaged) 
+ICW.Util.Config:get_NewHeadlinesLocation ()in <0x00011> 
+ICW.Content.Data.XMLConnector:.ctor ()in <0x0002f> 
+ICW.Content.Headlines:.ctor ()in <0x00089> 
+ICW.Presentation.News:GetDataSource ()in <0x00042> 
+ICW.Presentation.News:Page_Load (object,System.EventArgs)in <0x0005a> 
+(wrapper delegate-invoke) 
+System.MulticastDelegate:invoke_void_object_EventArgs 
+(object,System.EventArgs)in <0x00090> System.Web.UI.Control:OnLoad 
+(System.EventArgs)in <0x00031> System.Web.UI.Control:LoadRecursive ()in 
+<0x000bb> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)in 
+<0x00191> .ExecuteHandlerState:Execute ()in 
+<0x00076> .StateMachine:ExecuteState 
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+It seems to me that the typeloader can't find the 
+DictionarySectionHandler, is this implemented? Something with the public 
+key perhaps?