Link to home
Start Free TrialLog in
Avatar of Wayne Barron
Wayne BarronFlag for United States of America

asked on

vb.net FileUpload limit under Windows 2016 IIS (Running on ARR Load Balance Web Farm 2-IIS Servers)

Hello All;

Windows 2016 IIS ARR Load Balance Web Farm.
Containing 7 Servers in all, including "2 - IIS Servers".
(Could this be the cause of the limitation, explained below?)

OK, Running my upload file script under Windows 10 IIS, I can upload up to 20 files at one time.
Running this same script under Windows 2016 IIS, I can upload a max of 2, sometimes, 3, files at a time.
If I try to upload more than that, I get
404 Error, the page cannot be found.
So, what gives?

web.config
<system.web>
<httpRuntime maxRequestLength="1073741824" executionTimeout="3600"/>
</system.web
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824"/>
      </requestFiltering>
    </security>
  </system.webServer>

Open in new window


What do I need to check on within IIS on the 2016 Server(s), to make sure they allow for more than the 2-or-3 file upload issue?

Thanks
Wayne
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wayne Barron

ASKER

For starters, I would like to kick myself in the BUTT for not remembering to set up the error pages to send details to the browser.
This is something that I do from the start but had forgotten about this part.
I do in without fault for the ASP Classic errors to the browser, but I forgot about the ones for IIS.
OK.
This is what I get.


Most likely causes:
Request filtering is configured on the Web server to deny the request because the content length exceeds the configured value


Things you can try:
Verify the configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting in the applicationhost.config or web.config file.

For the solution right here.
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/

Thanks once again, for helping me out, Ryan.
I have it all working now.
I have it set to upload almost 100mb at a time, which is good enough for what I am needing to do.
So, now tomorrow, I can start filling the joker with content.

Wayne