Thursday, October 6, 2011

Execution of the ASP page caused the Response Buffer to exceed its configured limit

If you are getting this error.

Response object error 'ASP 0251 : 80004005'  Response Buffer Limit Exceeded
Execution of the ASP page caused the Response Buffer to exceed its configured limit. 

The reason this is happening is because the IIS 6 cannot handle the large response.

To solve this problem:

  1. Edit the metabase.xml to increase the AspBufferingLimit value that usually is 4194304 (bytes, that means 4Mb)
    1. Before you edit the file on ISS right click the server and check the box "Enable Direct Metabase Edit"
    2. The file is located %SYSTEMROOT%\system32\inetsrv
  2. Use Response.Flush in your code to send blocks of data to the browser
  3. At the top of the page response.buffer = true in your asp code