[Mono-bugs] [Bug 80543][Nor] New - Webconfig throws InvalidCastException
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 18 08:21:23 EST 2007
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 luke at quinane.id.au.
http://bugzilla.ximian.com/show_bug.cgi?id=80543
--- shadow/80543 2007-01-18 08:21:23.000000000 -0500
+++ shadow/80543.tmp.24279 2007-01-18 08:21:23.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 80543
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: luke at quinane.id.au
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Webconfig throws InvalidCastException
+
+Description of Problem:
+The web configuration throws an invalid cast exception. This is the stack
+trace:
+
+System.InvalidCastException: Cannot cast from source type to destination type.
+ at System.Web.Configuration.TagPrefixInfo.get_TagName () [0x00000]
+ at System.Web.UI.TemplateParser.RegisterConfigControls () [0x00000]
+ at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000]
+ at System.Web.UI.PageParser.CompileIntoType () [0x00000]
+ at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000]
+ at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
+virtualPath, System.String inputFile, System.Web.HttpContext context)
+[0x00000]
+ at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext
+context, System.String requestType, System.String url, System.String path)
+[0x00000]
+ at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context)
+[0x00000]
+ at System.Web.HttpApplication+<>c__CompilerGenerated6.MoveNext () [0x00000]
+
+
+Steps to reproduce the problem:
+1. Add the following into the web.config:
+
+<system.web>
+ <pages><controls>
+ <add namespace="A" assembly="A" tagPrefix="abc"/>
+ </controls></page>
+ ...
+
+
+2. Load a page from the XSP webserver. It returns 500 error.
+
+Actual Results:
+InvalidCastException
+
+Expected Results:
+No exception.
+
+How often does this happen?
+Always.
More information about the mono-bugs
mailing list