[Mono-bugs] [Bug 77069][Wis] Changed - [2.0] ASP.NET Precompilation does not work
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jan 19 21:55:47 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 grendello at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77069
--- shadow/77069 2006-12-28 14:54:48.000000000 -0500
+++ shadow/77069.tmp.6324 2007-01-19 21:55:47.000000000 -0500
@@ -71,6 +71,25 @@
------- Additional Comments From fredrik at elestedt.com 2005-12-27 05:57 -------
If I rename the bin folder it seems to be able to read referenced
assemblies though - but as you say, not the 2.0 precompiled.
As a matter of fact - it does not handle 2.0 user web controls at all...
+
+------- Additional Comments From grendello at gmail.com 2007-01-19 21:55 -------
+The problem in this case is that the base class of your masterpage
+class is named MasterPage, and since the code generated from
+base_master is put in the ASP namespace like so
+
+namespace ASP
+{
+ class base_master : MasterPage {...}
+}
+
+the compiler thinks its inheriting from ASP.MasterPage, which is a
+standard ASP.NET control and does not contain the fields shown in the
+error message. The patch below fixes the issue by checking whether a
+page base type is in the root namespace and, if so, prepends the
+global:: qualifier to it, thus preventing the error from happening.
+I am able to run your sample site without problems after applying the
+patch. The diff is against mono svn head.
+
More information about the mono-bugs
mailing list