Hi,
Please verify the error message you received. If the upload was aborted due to MaxDataSize is reached, the message should read:
...... The size of the submitted data exceeded the maximum allowed size......This can be very easily confused with another common error:
...... AJAX call to the server times out......You should recieve the first message right away if it is because of MaxDataSize. However the second message is only triggered after about 10 seconds. During those 10 seconds you will not see progress bar move.
The most common reason for the second error message (as it was on our live demo site) is the default IIS 7 input size filter. By default IIS 7 ignores a request when the whole data size exceeds a certain limits. This value was about 30M on our demo site (coincidently, it's the value we set in our demo). Thus if you try to upload a file over that size, the request will be ignored by the server and you will receive the time out error. Note the time out error does not occurs immediately --- it occurs after it has not received any response from the server after the time out.
To correct this error, you will need to increase the IIS 7 request limit. To increase the limit, add the following requestFiltering entry in your web.config (do not duplicate other entries such as the root <configuration> element):
Code: HTML/ASPX
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="100000000"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
The above sample set the request limit to 100M.
We have just adjusted increased our demo site limit from 30M to 100M. So if you try to upload anything between 30M to 100M (the actual allowed size will be smaller because of encoding overhead), you should get the "data exceeded the maximum allowed size" error right away.
Theoretically it is possible to receive the same error on IIS 6 as well. However from our experience, the error almost always occurs on IIS 7. The steps for IIS 6 is different. Please see this link for more details:
http://doc.essentialobjects.com/library/1/ajaxuploader/troubleshoot.aspxPlease feel free to let us know if you still have problems.
Thanks!