[Mono-bugs] [Bug 82285][Maj] Changed - [REGRESSION] Registering more then two user controls leads to InvalidCastExc.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 1 17:54:17 EDT 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 juraj at hotfeet.ch.

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

--- shadow/82285	2007-08-01 17:34:52.000000000 -0400
+++ shadow/82285.tmp.8047	2007-08-01 17:54:17.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 82285
 Product: Mono: Class Libraries
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: FC6
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: Sys.Web
 AssignedTo: mhabersack at novell.com                            
 ReportedBy: juraj at hotfeet.ch               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -28,6 +28,26 @@
 <% @Control Language="C#" %>
 
 Request index.aspx and you'll get the exception. Remove one of the
 "@Register"s from index.aspx and everything works.
 
 Commit 83071 to System.Web.Compilation/AspComponentFoundry.cs is to blame.
+
+------- Additional Comments From juraj at hotfeet.ch  2007-08-01 17:54 -------
+The problem is the last line in the following excerpt, where f
+references a Queue object:
+
+void InternalRegister (string foundryName, Foundry foundry)
+{
+	object f = foundries [foundryName];
+	Foundry newFoundry = null;
+
+	if (f is CompoundFoundry) {
+		((CompoundFoundry) f).Add (foundry);
+		return;
+	} else if (f == null || (f is AssemblyFoundry && foundry is
+AssemblyFoundry)) {
+		newFoundry = foundry;
+	} else if (f != null) {
+		CompoundFoundry compound = new CompoundFoundry foundryName);
+		compound.Add ((Foundry) f);
+


More information about the mono-bugs mailing list