locked
yet another file upload question... RRS feed

  • Question

  • User-1494278837 posted

    running windows server 2008 SP2 - 64 bit -- IIS 7.5

    I need to upload a file just over 100MB.

    web.config:

     <httpRuntime maxRequestLength="2000000000" executionTimeout="1000000" requestLengthDiskThreshold="2000000000" />
    

    also did:

    appcmd set config "GADOIDMA" - section:requestFiltering - requestLimiots.maxAllowedContentLength:2000000000 - commitpath: apphost

     I am geeting the traditional error:  System.Web.Httpexception: Maximum request length exceeded

    Httpexception (0x80004005): Maximum request length exceeded.

     

    Microsoft .NET Framework Version 4.0.30319

     

    ALL the articles i read seem to point to these two entries as a solution to the problem but not form me.  where else do you recommend i should Look.

     

    Thanks

    T

    Tuesday, August 13, 2013 2:50 PM

Answers

All replies

  • User1508394307 posted

    What is the value of maxAllowedContentLength?

    If not set, try

    <system.webServer>
       <security>
          <requestFiltering>
             <requestLimits maxAllowedContentLength="157286400" />
          </requestFiltering>
       </security>
     </system.webServer>

    P.S.

    Not sure about your command but there is a typo in requestLimiots (instead of requestLimits). Anyway, try to set it in in the web.config

    Tuesday, August 13, 2013 2:58 PM
  • User-1494278837 posted

    I already have..

          <requestFiltering>
            <requestLimits  maxAllowedContentLength="2000000000"/> <!-- 2 gigs -->
          </requestFiltering>
    Tuesday, August 13, 2013 3:09 PM
  • User-1494278837 posted

    in applicationHost.config

     

    entry

    <section name="requestFiltering" overrideModeDefault="Allow" />

    Tuesday, August 13, 2013 3:13 PM
  • User218309205 posted

    Hi Gadoi,

    may be this can help u

    http://stackoverflow.com/questions/3853767/maximum-request-length-exceeded


    chk the following posts on it.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 14, 2013 3:30 AM
  • User-1494278837 posted

    And it Did !

    Thank you!!

    Sometimes - its hard getting a definitive answer (perhaps there is no such a thing...)

    Wednesday, August 14, 2013 1:48 PM