Search Persits Software Knowledge Base

 

Article PS040527139

File download problems on Windows 2003, 2008 and 7

Problem Description

When downloading large files from a Windows 2003 and 2008 servers using a Persits product, the files appear to be truncated or corrupted.

Solution

IIS 6.0 on Windows 2003 has a file named metabase.xml which resides in the folder C:\Windows\system32\inetsrv . By default, this file has this entry:

AspBufferingLimit = "4194304"

This limits download size to 4,194,304 bytes (4 MB), and larger files will be silently truncated with no message from IIS. You can change that to a large value (such as 2000000000 for 2 gigabytes) to allow your Windows 2003 server to send large downloads.

You may need to stop the IIS service before you can save the metabase.xml file and have the change take effect.

On IIS 7.x (Windows 2008 and Windows 7), change the Response Buffering Limit property under ASP/Limit Properties.

This article applies to the following products and methods:

AspUpload when using SendBinary
AspJpeg when using SendBinary
AspPDF when using SaveHTTP or SendBinary
Microsoft ADO file export code using Response.BinaryWrite

Created: 5/27/2004 1:36:13 PM
Last Modified: 9/7/2011 11:46:39 AM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.