How to increase IIS buffer limit size

Sometimes IIS gives you HTTP500 server error when trying to write binary data to response (Response.BinaryWrite). Thats because the data is exceeding the buffer limit size. Solution is to increase the limit size (I think default is  4MB).

To increase the buffering limit in IIS 6, follow these steps:

  1. Click Start, click Run, type cmd, and then click OK.
  2. Type the following command, and then press ENTER:
    cd /d %systemdrive%\inetpub\adminscripts
  3. Type the following command, and then press ENTER:
    cscript.exe adsutil.vbs SET w3svc/aspbufferinglimit LimitSize

    Note LimitSize represents the buffering limit size in bytes. For example, the number 67108864 sets the buffering limit size to 64 MB.

Responses are currently closed, but you can trackback from your own site.

Comments are closed.