[Mono-bugs] [Bug 78005][Blo] New - MasterPages seem completely broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 3 21:28:30 EDT 2006


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 jwiegley at gmail.com.

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

--- shadow/78005	2006-04-03 21:28:30.000000000 -0400
+++ shadow/78005.tmp.1932	2006-04-03 21:28:30.000000000 -0400
@@ -0,0 +1,114 @@
+Bug#: 78005
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: OS/X 10.4.5
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: jwiegley at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MasterPages seem completely broken
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+Maybe I am doing something very wrong, but the upgrade to 1.1.14 has rendered my site 
+unusable.  Basically, I have a master page name MasterPage.master.  It contains two content
+holders:
+
+  <asp:ContentPlaceHolder id="PageDetails" runat="server" />
+  <asp:ContentPlaceHolder id="PageContent" runat="server" />
+
+In my home page, Entry.aspx, I attempt to fill in one of the content holders.  If I use a <% .. %> 
+block to enclose the entirety of the text, it tells me that it's expecting to see </asp:Content>.  
+This is the first problem, which I do not understand.  It works great with 1.1.13.
+
+If I remove the <% ... %> that surrounds my text, and put in a simple paragraph like so:
+
+  <asp:Content runat="server" ContentPlaceHolderID="PageDetails">
+    <p>Hello.</p>
+  </asp:Content>
+
+It now gives a stacktrace:
+
+Description: Error processing request.
+Error Message: HTTP 500.
+
+Stack Trace:
+System.NullReferenceException: Object reference not set to an instance of an object
+in [0x00111] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/TemplateControlCompiler.cs:987) 
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties)
+in [0x00243] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/TemplateControlCompiler.cs:1027) 
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties)
+in [0x001a3] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/TemplateControlCompiler.cs:1001) 
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties)
+in [0x0001a] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/TemplateControlCompiler.cs:1085) 
+System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
+in [0x00001] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/PageCompiler.cs:219) 
+System.Web.Compilation.PageCompiler:CreateMethods ()
+in [0x00252] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/BaseCompiler.cs:114) System.Web.Compilation.BaseCompiler:Init ()
+in [0x0001b] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/BaseCompiler.cs:337) 
+System.Web.Compilation.BaseCompiler:GetCompiledType ()
+in [0x00057] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/
+System.Web.Compilation/AspGenerator.cs:281) 
+System.Web.Compilation.AspGenerator:GetCompiledType ()
+in [0x00008] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+PageParser.cs:334) System.Web.UI.PageParser:CompileIntoType ()
+in [0x00001] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+TemplateControlParser.cs:73) System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in [0x0000a] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+PageParser.cs:101) System.Web.UI.PageParser:GetCompiledPageInstance (System.String 
+virtualPath, System.String inputFile, System.Web.HttpContext context)
+in [0x00004] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+PageHandlerFactory.cs:41) System.Web.UI.PageHandlerFactory:GetHandler 
+(System.Web.HttpContext context, System.String requestType, System.String url, System.String 
+path)
+in [0x00068] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web/
+HttpApplication.cs:1067) System.Web.HttpApplication:GetHandler (System.Web.HttpContext 
+context)
+in [0x000df] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web/
+HttpServerUtility.cs:129) System.Web.HttpServerUtility:Execute (System.String path, 
+System.IO.TextWriter writer, Boolean preserveQuery)
+in [0x00004] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web/
+HttpServerUtility.cs:197) System.Web.HttpServerUtility:Transfer (System.String path, Boolean 
+preserveForm)
+in [0x00035] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web/
+HttpServerUtility.cs:192) System.Web.HttpServerUtility:Transfer (System.String path)
+in [0x0000b] (at /var/tmp/johnw-temp-aspnet-0/d61a57af/48052.0.cs:35) 
+ASP.Default_aspx:Page_Load ()
+in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
+in [0x00006] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web/
+NoParamsInvoker.cs:50) System.Web.NoParamsInvoker:InvokeNoParams (System.Object o, 
+System.EventArgs args)
+in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs 
+(object,System.EventArgs)
+in [0x00090] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+Control.cs:841) System.Web.UI.Control:OnLoad (System.EventArgs e)
+in [0x0008b] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+Control.cs:1156) System.Web.UI.Control:LoadRecursive ()
+in [0x00129] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+Page.cs:1058) System.Web.UI.Page:InternalProcessRequest ()
+in [0x00052] (at /private/tmp/scratch/mono-1.1.14/mcs/class/System.Web/System.Web.UI/
+Page.cs:986) System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
+
+I figured I would report this right away, since the release notes claim that Master Pages had been 
+fixed.
+
+Thanks, John


More information about the mono-bugs mailing list