Response.write not working when deployed to IIS. Works locally.
Posted on 2010-09-07
I am trying to use a code sample that calls response.write. When I run my application locally in Cassini I get back a page with the string that I used when calling the write method. When I deploy it to my IIS 6 box and view the same page in the same browser the page comes back empty. I have debugged it on the server and confirmed that the response.write block is being called. I have confirmed that the file versions on my local machine and those installed on the server are the same. i have restarted IIS.
Here is the code
HttpContext.Current.Response.Clear(); // Get rid of anything queued up
HttpContext.Current.Response.Write("Hello New World");