INFO: Response.Buffer Is ON by Default in Internet Information Services 5.0 (245198)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Internet Information Server 5.0
This article was previously published under Q245198 SUMMARY
In Internet Information Services (IIS) 5.0, the Response.Buffer property is ON (set to TRUE) by default, which is a change from Internet Information Server 4.0. To illustrate this, run the following Active Server Pages (ASP) code in Internet Information Server 4.0 and Internet Information Services 5.0:
<%
Response.Write "Before" & "<BR>"
Response.Buffer = FALSE
Response.Write "After" & "<BR>"
%>
When you run this code in Internet Information Services 5.0, the following error message appears:
Response object, ASP 0157 (0x80004005)
Buffering On
Buffering cannot be turned off once it is already turned on.
When you run this code in Internet Information Server 4.0, the following text appears:
Modification Type: | Major | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbCodeSnippet kbinfo KB245198 |
---|
|