Persits Software, Inc. Knowledge Base Articles

AspUpload Upload Size Limit on IIS7+

Problem Description

When uploading files with AspUpload to Windows 2008+ running IIS 7+, the upload process fails with little or no information about the problem.


The problem may be related to the requestLimits configuration parameter. The file web.config for your application (or machine.config, if appropriate) needs to be modified as follows:

<?xml version="1.0" encoding="utf-8" ?>
            <requestLimits maxAllowedContentLength="524288000" />

The example above sets the upload size limit to 500 MB.