[Mono-bugs] [Bug 75157][Nor] New - masterpages compilation error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 4 16:41:40 EDT 2005


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 mmorano at mikeandwan.us.

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

--- shadow/75157	2005-06-04 16:41:40.000000000 -0400
+++ shadow/75157.tmp.7710	2005-06-04 16:41:40.000000000 -0400
@@ -0,0 +1,86 @@
+Bug#: 75157
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mmorano at mikeandwan.us               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: masterpages compilation error
+
+Description of Problem:
+
+Using MasterPages in asp.net using the 2.0 profile generates page level
+compilation errors.  This is reproducible even when using the supplied
+simple masterpage test contained in xsp
+(xsp/test/2.0/masterpages/simple.aspx).  This used to work last time I
+tried this test page, which was 2-3 months ago.
+
+
+
+Steps to reproduce the problem:
+1. Try to view the simple.aspx using xsp2 in a web browser
+
+
+
+
+Actual Results:
+
+Page compilation error:
+
+Server Error in '/' Application
+Compilation Error
+Description: Error compiling a resource required to service this request.
+Review your source file and modify it to fix this error.
+
+Error message: /tmp/mmorano-temp-aspnet/37c7483a/97030.0.cs(61,0) : error
+CS1540: Cannot access protected member
+`System.Web.UI.MasterPage.AddContentTemplate' via a qualifier of type
+`System.Web.UI.MasterPage'; the qualifier must be of type `ASP.simple_aspx'
+(or derived from it)
+
+The following is part of the code listing on this error page.  Line 61 is
+highlighted in red as being the problem line:
+
+<snip>
+
+Line 60:         private void __BuildControlTree(System.Web.UI.Control
+__ctrl) {
+Line 61:            
+__ctrl.Page.Master.AddContentTemplate("ContentPlaceHolder1", new
+System.Web.UI.CompiledTemplateBuilder(new
+System.Web.UI.BuildTemplateMethod(this.__BuildControl_Content1)));
+Line 62:             System.Web.UI.IParserAccessor __parser =
+((System.Web.UI.IParserAccessor)(__ctrl));
+Line 63:             __parser.AddParsedSubObject(new
+System.Web.UI.LiteralControl("\n"));
+Line 64:         }
+
+
+</snip>
+
+
+
+
+Expected Results:
+
+View the actual page, properly pulling in content based on the master page
+/ content page.
+
+
+How often does this happen? 
+
+Always
+
+
+Additional Information:
+
+fresh versions of mono / mcs / xsp from svn as of June 4, 2005


More information about the mono-bugs mailing list