[Mono-bugs] [Bug 81232][Wis] New - Web.config server control registration issue

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 25 11:03:13 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 joe_audette at yahoo.com.

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

--- shadow/81232	2007-03-25 10:03:12.000000000 -0500
+++ shadow/81232.tmp.23019	2007-03-25 10:03:12.000000000 -0500
@@ -0,0 +1,101 @@
+Bug#: 81232
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Suse 10.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: joe_audette at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Web.config server control registration issue
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I'm posting this at Marek's request so it won't be overlooked but have
+found a workaround that solves the problem for mojoPortal.
+
+
+Steps to reproduce the problem:
+
+running Mono from svn r74684 
+2.0 ASP.NET
+
+I have Web.config setting slike this:
+
+<pages validateRequest="false" enableViewStateMac="true"
+viewStateEncryptionMode="Auto">
+
+	<namespaces>
+
+	<add namespace="System.Globalization" />
+
+	<add namespace="mojoPortal.Business" />
+
+	<add namespace="mojoPortal.Business.WebHelpers" />
+
+	<add namespace="mojoPortal.Web" />
+
+	<add namespace="mojoPortal.Web.Framework" />
+
+	<add namespace="mojoPortal.Web.UI" />
+
+
+
+	</namespaces>
+
+	<controls>
+
+
+	<add tagPrefix="portal" namespace="mojoPortal.Web"
+assembly="mojoPortal.Web" />
+
+
+	<add tagPrefix="portal" namespace="mojoPortal.Web.UI"
+assembly="mojoPortal.Web" />
+
+....
+</controls>
+</pages>
+
+note that the tagprefix portal is used first for namespace mojoPortal.Web
+then is used again for mojoPortal.Web.UI
+
+I had one WebControl in the mojoPortal.Web namespace and many controls in
+mojoPortal.Web.UI, all live in the same assembly mojoPortal.Web.dll
+
+The control in mojoPortal.Web did not get registered but the controls in
+mojoPortal.Web.UI all worked.
+
+I suspect its a last one wins situation and since mojoPortal.Web.UI is
+registered last it works.
+
+Since I only had 1 control in mojoPortal.Web, I changed it to the
+mojoPortal.Web.UI namespace and that solved the problem for me.
+
+However the previous code worked fine on Windows so others may run into this.
+
+Actual Results:
+
+control in first namespace not registered
+
+Expected Results:
+
+control in first namespace registered
+
+
+How often does this happen? 
+
+every time
+
+
+Additional Information:
+
+as stated  I found a workaround for my situation


More information about the mono-bugs mailing list