[Mono-bugs] [Bug 79916][Maj] New - Server.Execute causes an errer when passed a StringWriter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 13 08:39:58 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 tom at sumora.com.

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

--- shadow/79916	2006-11-13 08:39:58.000000000 -0500
+++ shadow/79916.tmp.15276	2006-11-13 08:39:58.000000000 -0500
@@ -0,0 +1,68 @@
+Bug#: 79916
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: tom at sumora.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Server.Execute causes an errer when passed a StringWriter
+
+Description of Problem:
+When calling the override Server.Execute(string path, TextWriter writer)
+page execution seems to halt with no exceptions.
+
+
+
+Steps to reproduce the problem:
+1. create 2 aspx files, Test.aspx, Test2.aspx and code behind Test.aspx.cs
+
+Test.aspx:
+<%@ Page Language="c#" Inherits="test.Test" %>
+
+Test2.aspx:
+<%@ Page CodeBehind="test2.aspx.cs" Language="c#" AutoEventWireup="false" %>
+<p style="color:blue">this is test two</p>
+
+
+Test.aspx.cs
+
+namespace test
+{
+	public class Test : System.Web.UI.Page
+	{
+		protected override void OnInit(System.EventArgs e)
+		{
+			StringWriter writer = new StringWriter();	
+			Server.Execute("./Test2.aspx",writer);
+			Response.Write("<p>Contents: "+writer.ToString()+"<br>");
+		}
+	
+
+
+2. compile the code into a dll
+mcs /t:library /out:bin/test.dll  -r:System.Web -r:System.Data
+-r:System.Drawing Test.aspx.cs 
+
+3. 
+Execute Test.aspx over http
+
+Actual Results:
+Blank page
+
+Expected Results:
+String on page containing strings from both pages 
+
+How often does this happen? 
+Every time
+
+Additional Information:
+mono 1.2 on Fedore core 3, using apache and mod_mono


More information about the mono-bugs mailing list