locked
cannot upload when file size more than 40mb RRS feed

  • Question

  • User-535616387 posted

    Hi Guys,

    i have update my web.config file with maxRequestLength tag and edit the ApplicationHost.config file   : 

    <httpRuntime maxRequestLength="4294967295" />

    also i have set up the windir%\system32\inetsrv\config\applicationhost.config --> <requestLimits maxAllowedContentLength ="<length>" />

    i have restart my iis server.

    why my big file still can't upload to the server ?

    i got this error message when i upload my file size more than 40 mb. 

    Thanks & Best Regards.
    wibowo wiwit

    Tuesday, August 21, 2018 12:30 AM

All replies

  • User-1716253493 posted

    Set also in web.config

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

    Tuesday, August 21, 2018 12:55 AM
  • User-535616387 posted

    Thanks for reply mas bro oned_gk,

    i was update my web.config but it doesn't work.. 

      <system.webServer>
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="4294967295"/>
          </requestFiltering>
        </security>
      </system.webServer>
    
    <httpRuntime maxRequestLength="1073741824" executionTimeout="9999999999" shutdownTimeout="999" requestLengthDiskThreshold="256" requestValidationMode="2.0" />



    Tuesday, August 21, 2018 2:03 AM
  • User-1716253493 posted

    Try increase filesize limit in web.config i.e 9999999999, then limit fileupload filesize in code behind

            if(FileUpload1.FileContent.Length< 1000)
            {
    
            }

    Tuesday, August 21, 2018 2:36 AM
  • User1724605321 posted

    Hi wibowowiwit,

    maxRequestLength is measured in kilobytes ,max value is 2147483647 KB (2 TB) . See this link and confirm you have correctly set the configuration . Also try to set the two values match as this reply shows .

    Best Regards,

    Nan Yu

    Wednesday, August 22, 2018 2:29 AM
  • User-535616387 posted

    Hi Nan Yu,

    i have copy and paste also check the web.config from your reference link :

    -https://stackoverflow.com/questions/3853767/maximum-request-length-exceeded/3853785#3853785 

    https://stackoverflow.com/questions/3853767/maximum-request-length-exceeded/12496077#12496077 

    it still doesn't work.

    Thank You & Best Regards.

    Monday, August 27, 2018 1:07 AM
  • User-535616387 posted

    up up up

    Tuesday, August 28, 2018 6:44 AM
  • User1724605321 posted

    Hi wibowowiwit,

    Could you please share the project so that we can test to reproduce your issue ?

    Best Regards,

    Nan Yu

    Wednesday, September 5, 2018 7:17 AM