KB Issue
ARR Server and Web Server IIS are not the same will cause problems in some websites. However, ensuring your configuration settings are identical will provide your guest with a working web server experience.
Issue Details
ASP.NET cannot upload more than 25mb and will receive the error 404 - File or directory not found when IIS is not correctly set up across all ARR Servers and Web Servers.
[Specs and Information on site and issue]
  • Windows 2016 Server Core Setup
  • IIS 10
  • ARR Server Farm (4 ARR Servers) with/
  • +--4 ARR Server Cores/
  • +--6 Web Server Cores/
  • +--3 SQL Server Cores/
  • Website = **Session State** [SQL Server] = [data source=localhost;Integrated Security=SSPI] Time-out (280)
Web.Config (File located in Root and SubFolder)
All IIS Servers would be restarted using the IISRESET
Copy
Search Site
Search Google
command during testing.
[ASP.NET - web.config (maxRequestLength & maxAllowedContentLength)]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
<httpRuntime executionTimeout="600" maxRequestLength="555555"/>
<requestLimits maxAllowedContentLength="555555555"/>

Uploading Media files
Bit rate 320kbps
File sizes range from 6 MB to 30 MB each.
If I upload multiple files totaling 23-25mb, everything is OK.
I tested a single 28MB file and uploaded it without issue.
I receive the following error when uploading multiple files totaling over 25MB.
Server Error
404 - File or directory not found. The resource you are looking for
might have been removed, had its name changed, or is temporarily unavailable.
When I upload files, I can watch the folder and see the files arrive and move to their proper location after database insertion. So it works as it should until I upload multiple files totaling over 25MB.
Recreate Issue
The ASP.NET upload used to work with the original Server configuration. However, with the new ARR Server Core setup, as documented above, it stopped working.
After checking in IIS, I found the issue.
In IIS
Resolve Issue
The following are my current specs at the time this article was originally written.
[Shared Configuration]
4 ARR Core Servers
+--Shared Configuration Files

6 Web Core Server
+--Shared Configuration Files
Application Request Routing and IIS Web Servers Settings
When setting up IIS on the Main Server, make sure your
Web Servers and ARR Servers have identical Request Filtering Settings.
If the ARR Servers differ from the Web Servers, you will experience this issue.


In IIS
Make sure all settings in this location match those in IIS on the Web Server.