Fw: [Mono-dev] header have been already sent ?

Bernhard Herzog schwimmlehrer at gmail.com
Fri Sep 9 05:47:12 EDT 2005


I think I know now why I get duplicate Response.Write and Console.WriteLine 
outputs: It is because of the following line in the web.config:

  <trace enabled="true" requestLimit="40" pageOutput="false" 
traceMode="SortByTime"/>

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 trace-output 
is enabled (no matter if pageOutput is false or true).

Bernhard

----- Original Message ----- 
> Unfortunately I am still having this problem (Console.WriteLine coming 
> twice
> and Response.Write coming again at the end of page). Here is a simple test
> case. But if that is working for everybody else I will have to wait for 
> the
> next release of Mono and if I am seeing it there, I will file a bug 
> report.
>
> Many thanks to the Mono team for the great work
> Bernhard
>
> write.aspx Output:
>
> This is write.aspx body. Doing some Response.Write output END OF PAGE 
> Doing
> some Response.Write output
>
> ----- Original Message ----- 
>> On Wed, 2005-09-07 at 23:49 +0200, Bernhard Herzog wrote:
>>> >> The login bug is fixed. Chris is taking care of the validation 
>>> >> summary
>>> >> not being shown when the 'name' field is empty.
>>> >
>>> > The validation summary fix should be in as well.
>>>
>>> Yes, that does work. I also verified the problem with the login.ascx
>>>
>>> Still on my list is:
>>> (3) Response.Output.Write output coming again at the end of the page
>>> http://lists.ximian.com/pipermail/mono-devel-list/2005-September/014557.html
>>
>> I cannot reproduce this problem with current SVN.
>>
>>>
>>> (4) Multipart forms not working
>>> http://lists.ximian.com/pipermail/mono-devel-list/2005-September/014558.html
>>
>> This is already fixed in SVN.
>>
>>>
>>> New Bug/Problem?
>>> (5) simple.aspx: A page is rendered twice? The Console.WriteLine in the
>>> page
>>> is called twice. My Output is:
>>
>> I can't reproduce this either.
>>
>> Thanks.
>>
>> -Gonzalo
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: write.aspx
Type: application/octet-stream
Size: 350 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050909/caa4bdf5/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: web.config
Type: application/octet-stream
Size: 678 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050909/caa4bdf5/attachment-0001.obj 


More information about the Mono-devel-list mailing list