Server cannot set content type after HTTP headers have been sent

S

seven.su

I am trying to streaming back a xls file in page render event and this has been working properly in .net 1.1.
But now I got 'Server cannot set content type after HTTP headers have been sent' under 2.0. Interestingly,Response.WriteFile works fine in 2.0 but I don't know if 2.0 has fixed the notorious buffer problem in WriteFile function or not.

So, is it a bug in 2.0 or there is some other to manipulate Response string in Render event?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top