[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, 14 Jan 2004 11:00:19 -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 2004-01-14 11:00:19.000000000 -0500
+++ shadow/52309.tmp.14049 2004-01-14 11:00:19.000000000 -0500
@@ -0,0 +1,166 @@
+Bug#: 52309
+Product: Mono/Class Libraries
+Version: unspecified
+OS: unknown
+OS Details:
+Status: NEEDINFO
+Resolution:
+Severity: Unknown
+Priority: Major
+Component: Sys.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?
+
+------- Additional Comments From jackson@ximian.com 2003-12-17 15:12 -------
+Could you post a more complete test case? The one I wrote that uses
+your config file works fine. Also what version of mono are you using?
+
+------- Additional Comments From gonzalo@ximian.com 2003-12-17 18:13 -------
+This trace is not from current CVS. It's previous to the latest
+changes in configuration stuff.
+
+------- Additional Comments From tkaszuba@hotmail.com 2003-12-24 07:53 -------
+ok, I think the version I used was 0.29 but I'll build from CVS and
+try to see if I get this bug again.
+
+------- Additional Comments From tkaszuba@hotmail.com 2004-01-14 11:00 -------
+I still get the same error with the build from January 14, 2003
+
+Mono JIT compiler version 0.29.99.20040113
+
+Stack trace:
+
+System.Reflection.TargetInvocationException: Exception has been
+thrown by the target of an invocation. --->
+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 <0x0006a>
+System.Web.Configuration.ConfigurationData:CreateNewHandler
+(string,System.Web.Configuration.SectionData)
+in <0x00148> System.Web.Configuration.ConfigurationData:GetHandler
+(string)
+in <0x00030>
+System.Web.Configuration.ConfigurationData:GetConfigInternal
+(string,System.Web.HttpContext,bool)
+in <0x0008f>
+System.Web.Configuration.ConfigurationData:GetConfigOptLocation
+(string,System.Web.HttpContext,bool)
+in <0x00160> System.Web.Configuration.ConfigurationData:GetConfig
+(string,System.Web.HttpContext)
+in <0x0007a> System.Web.Configuration.WebDefaultConfig:GetConfig
+(string,System.Web.HttpContext)
+in <0x00030> System.Web.Configuration.WebDefaultConfig:GetConfig
+(string)
+in <0x0007b> 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_ConfirmationMailLocation ()
+in <0x00015> ICW.Mail.TemplateFactory:.ctor ()
+in <0x00026> ICW.Mail.Mail:.ctor ()
+in <0x00024> ICW.Presentation.Subscribe:.ctor ()
+in <0x0000a> ASP.Subscribe_aspx:.ctor ()
+in (unmanaged) /usr/lib/libmono.so.0 [0x4004e07b]
+in (unmanaged) /usr/lib/libmono.so.0(mono_runtime_invoke+0x23)
+[0x40085b0b]
+in (unmanaged) /usr/lib/libmono.so.0(mono_runtime_invoke_array+0xb6)
+[0x4008673e]
+in (unmanaged) /usr/lib/libmono.so.0 [0x4008bee8]
+in <0x0009c> System.Reflection.MonoCMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object
+[],System.Globalization.CultureInfo)
+--- End of inner exception stack trace ---
+
+in <0x00103> System.Reflection.MonoCMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object
+[],System.Globalization.CultureInfo)
+in <0x00022> System.Reflection.MonoCMethod:Invoke
+(System.Reflection.BindingFlags,System.Reflection.Binder,object
+[],System.Globalization.CultureInfo)
+in <0x00047> System.Reflection.ConstructorInfo:Invoke (object[])
+in <0x00154> System.Activator:CreateInstance (System.Type,bool)
+in <0x00012> System.Activator:CreateInstance (System.Type)
+in <0x00034> System.Web.UI.TemplateControlParser:GetCompiledInstance
+()
+in <0x0004a> System.Web.UI.PageParser:GetCompiledPageInstance
+(string,string,System.Web.HttpContext)
+in <0x00013> System.Web.UI.PageHandlerFactory:GetHandler
+(System.Web.HttpContext,string,string,string)
+in <0x001b1> System.Web.HttpApplication:CreateHttpHandler
+(System.Web.HttpContext,string,string,string)
+in <0x0011f> .CreateHandlerState:Execute ()
+in <0x0007d> .StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+
+
+
+