Response Buffer Limit Exceeded
Solution 1:
I know this is way late, but for anyone else who encounters this problem: If you are using a loop of some kind (in my case, a Do-While) to display the data, make sure that you are moving to the next record (in my case, a rs.MoveNext).
Solution 2:
Here is what a Microsoft support page says about this: https://support.microsoft.com/en-us/help/944886/error-message-when-you-use-the-response-binarywrite-method-in-iis-6-an.
But it’s easier in the GUI:
- In Internet Information Services (IIS) Manager, click on ASP.
- Change Behavior > Limits Properties > Response Buffering Limit from 4 MB to 64 MB.
- Apply and restart.
Solution 3:
The reason this is happening is because buffering is turned on by default, and IIS 6 cannot handle the large response.
In Classic ASP, at the top of your page, after <%@Language="VBScript"%>
add:
<%Response.Buffer = False%>
In ASP.NET, you would add Buffer="False"
to your Page directive.
For example:
<%@Page Language="C#" Buffer="False"%>
Solution 4:
I faced the same kind of issue, my IIS version is 8.5. Increased the Response Buffering Limit
under the ASP -> Limit Properties
solved the issue.
- In IIS 8.5, select your project, you can see the options in the right hand side. In that under the IIS, you can see the
ASP
option.
- In the option window increase the
Response Buffering Limit
to40194304
(approximately 40 MB) .
- Navigate away from the option, in the right hand side top you can see the Actions menu, Select Apply. It solved my problem.