Confusing required maxRequestLength and maxAllowedContentLength settings RRS feed

  • Question

  • User1245178932 posted

    Hi all,

    Can somebody confirm that for IIS 7.5 I need to set the maxRequestLength and the maxAllowedContentLength values, to be able to upload large files?

    If I don't set the maxRequestLength value, I'm not able to upload files larger than approximately 1 Mb. Even while the default IIS 7.5 maxAllowedContentLength value is 30000000 bytes (28.6 Mb).

    These two required settings confuse me, hopefully someone can help me out.

    The settings:

        <httpRuntime maxRequestLength="153600" executionTimeout="900" />

                    <requestLimits maxAllowedContentLength="157286400" />


    Thursday, July 22, 2010 4:58 AM


  • User744767459 posted


    The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, July 27, 2010 5:00 AM