[Mono-bugs] [Bug 77586][Blo] New - Masterpages fail to find their .master template when running in a sub directory

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 17 19:06:11 EST 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 zac at zacbowling.com.

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

--- shadow/77586	2006-02-17 19:06:11.000000000 -0500
+++ shadow/77586.tmp.10519	2006-02-17 19:06:11.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 77586
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: zac at zacbowling.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Masterpages fail to find their .master template when running in a sub directory
+
+When using master pages in a directory, the master pages attempt to load
+out of some root (either the application, web, or system root but I'm
+unsure which). When I put an absolute path in for the master page source,
+the entire web application path is prepended to the directory.
+
+Example (up until the bug is fixed I will leave this on):
+http://zbowling.com/test/2.0/masterpages/content2.aspx
+
+
+
+Server error in '/test' application
+Description: Error processing request.
+
+Error Message: HTTP 500.
+
+Stack Trace:
+
+System.IO.FileNotFoundException: File not found. : /frame.master
+in <0x0027d> System.IO.StreamReader:.ctor (System.String path,
+System.Text.Encoding encoding, Boolean detect_encoding_from_bytemarks,
+Int32 buffer_size)
+in <0x00017> System.IO.StreamReader:.ctor (System.String path,
+System.Text.Encoding encoding)
+in (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor
+(string,System.Text.Encoding)
+in <0x0003c> System.Web.Compilation.AspGenerator:InitParser (System.String
+filename)
+in <0x000c9> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x00029> System.Web.UI.UserControlParser:CompileIntoType ()
+in <0x00011> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in <0x00030> System.Web.UI.MasterPageParser:GetCompiledMasterInstance
+(System.String virtualPath, System.String inputFile, System.Web.HttpContext
+context)
+in <0x00021> System.Web.UI.MasterPage:CreateMasterPage
+(System.Web.UI.TemplateControl owner, System.Web.HttpContext context,
+System.String masterPageFile, IDictionary contentTemplateCollection)
+in <0x0003a> System.Web.UI.Page:get_Master ()
+in <0x00033> System.Web.UI.Page:ApplyMasterPage ()
+in <0x000c1> System.Web.UI.Page:InternalProcessRequest ()
+in <0x000aa> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)


More information about the mono-bugs mailing list