Response Buffer Limit Exceeded

后端 未结 11 1262
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 10:05

I am running a simple query to get data out of my database & display them. I\'m getting an error that says Response Buffer Limit Exceeded.

相关标签:
11条回答
  • 2020-12-08 10:32

    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"%>

    0 讨论(0)
  • 2020-12-08 10:32

    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.

    1. 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.

    1. In the option window increase the Response Buffering Limit to 40194304 (approximately 40 MB) .

    1. Navigate away from the option, in the right hand side top you can see the Actions menu, Select Apply. It solved my problem.

    0 讨论(0)
  • 2020-12-08 10:32

    Thank you so much! <%Response.Buffer = False%> worked like a charm! My asp/HTML table that was returning a blank page at about 2700 records. The following debugging lines helped expose the buffering problem: I replace the Do While loop as follows and played with my limit numbers to see what was happening:

    Replace

    Do While not rs.EOF

    'etc .... your block of code that writes the table rows

    rs.moveNext

    Loop

    with

    Do While reccount < 2500

    if rs.EOF then recount = 2501

    'etc .... your block of code that writes the table rows

    rs.moveNext

    Loop

    response.write "recount = " & recount

    raise or lower the 2500 and 2501 to see if it is a buffer problem. for my record set, I could see that the blank page return, blank table, was happening at about 2700 records, good luck to all and thank you again for solving this problem! Such a simple great solution!

    0 讨论(0)
  • 2020-12-08 10:33

    You can increase the limit as follows:

    1. Stop IIS.
    2. Locate the file %WinDir%\System32\Inetsrv\Metabase.xml
    3. Modify the AspBufferingLimit value. The default value is 4194304, which is about 4 MB. Changing it to 20MB (20971520).
    4. Restart IIS.
    0 讨论(0)
  • 2020-12-08 10:36

    One other answer to the same error message (this just fixed my problem) is that the System drive was low on disk space. Meaning about 700kb free. Deleting a lot of unused stuff on this really old server and then restarting IIS and the website (probably only IIS was necessary) cause the problem to disappear for me.

    I'm sure the other answers are more useful for most people, but for a quick fix, just make sure that the System drive has some free space.

    0 讨论(0)
提交回复
热议问题