Hello,

  The attached fiff fixes an issue when a control is registered from within
Web.config and then re-registered using the <%@ Register %> directive. Please
review, thanks

marek
Index: System.Web.Compilation/AspComponentFoundry.cs
===================================================================
--- System.Web.Compilation/AspComponentFoundry.cs	(revision 72462)
+++ System.Web.Compilation/AspComponentFoundry.cs	(working copy)
@@ -179,6 +179,10 @@
 #if NET_2_0
 			string source;
 
+			public bool FromWebConfig {
+				get { return source != null; }
+			}
+			
 			public TagNameFoundry (string tagName, string source)
 			{
 				this.tagName = tagName;
@@ -282,6 +286,10 @@
 				TagNameFoundry tn = (TagNameFoundry) foundry;
 				string tagName = tn.TagName;
 				if (tagnames.Contains (tagName)) {
+#if NET_2_0
+					if (tn.FromWebConfig)
+						return;
+#endif
 					string msg = String.Format ("{0}:{1} already registered.", tagPrefix, tagName);
 					throw new ApplicationException (msg);
 				}

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to