[Mono-bugs] [Bug 76051][Nor] New - Response.Writes and
Console.WriteLines coming twice when tracing is enabled
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Sep 10 04:08:05 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 schwimmlehrer at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76051
--- shadow/76051 2005-09-10 04:08:05.000000000 -0400
+++ shadow/76051.tmp.20921 2005-09-10 04:08:05.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 76051
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: toshok at ximian.com
+ReportedBy: schwimmlehrer at hotmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Response.Writes and Console.WriteLines coming twice when tracing is enabled
+
+Description of Problem:
+I am using revision 49854. When enabling tracing in web.config output
+generated by Response.Write and Console.WriteLine comes twice, no matter if
+pageOutput is false or true.
+
+<trace enabled="true" requestLimit="40" pageOutput="false"
+traceMode="SortByTime"/>
+
+Steps to reproduce the problem:
+1. Load the test page (write.aspx) in a browser (use the provided web.config)
+
+Actual Results:
+Response.Writes and Console.Writes come twice.
+HTML Output: This is write.aspx body. Doing some Response.Write output END
+OF PAGE Doing some Response.Write output
+Console Output:
+Console.WriteLine 993080700
+Console.WriteLine 1951697372
+
+Expected Results:
+Response.Writes and Console.Writes coming only once (as it works in ASP.Net).
+HTML Output: This is write.aspx body. Doing some Response.Write output END
+OF PAGE
+Console Output:
+Console.WriteLine 993080700
+
+How often does this happen?
+Always
+
+Additional Information:
+Source code in InternalProcessRequest in System.Web.UI/Page.cs:
+
+969: Trace.Write ("aspx.page", "Begin Render");
+970: HtmlTextWriter output = new HtmlTextWriter(_context.Response.Output);
+971: RenderControl (output);
+972: Trace.Write ("aspx.page", "End Render");
+973:
+974: RenderTrace (output);
+
+When I comment out the "RenderTrace" line I get the output only once, when
+ this method is called the page is rendered twice. But only when tracing is
+enabled (no matter if pageOutput is false or true).
More information about the mono-bugs
mailing list