CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
asp.net cannot upload more than 25mb and will receive the error 404 - File or directory not found
- Article ID:
6263 - Date Created
Saturday, February 4, 2023 - Last Updated
Sunday, February 5, 2023 - This Article Has been Viewed
368 times - Short Desc
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. - Details
asp.net cannot upload more than 25mb and will receive the error 404 - File or directory not found when IIS is not correctly setup 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/
------6 Web Servers/
------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** command during testing.
<httpRuntime executionTimeout="600" maxRequestLength="555555"/>
<requestLimits maxAllowedContentLength="555555555"/>
Uploading Media files
Bit rate 320kbps
Files sizes are between 6mb and 30mb each.
If I upload multiple files totaling 23-25mb, everything is OK.
I tested a single file at 28MB and uploaded it without issue.
I receive the following error if I upload 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 files coming in and moving to their proper location after database insertion. So it is working like it is supposed to until I upload multiple files with a combined 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 was able to find the issue.
In IIS
Click on the Server Name [ServerName (DomainName\ServerUser)]
In the Center, under IIS, Double-click on [Request Filtering]
[Request Limits]
Maximum allowed content length (Bytes)
(Original ARR Server 2016 Desktop Experience)
^--> 1000000000 (Equals 1000 MB)
(New Configuration Web Servers)
^--> 555555555 (Equals 555.5 MB)
(New ARR Server Core)
^--> 30000000 (Equals 30 MB) - Resolve Issue
For those who are running a setup as I am.
Example
4 ARR Core Servers
^--->Shared Configuration Files
6 Web Core Server
^--->Shared Configuration Files
When setting up IIS on the Main IIS 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
Click on the Server Name [ServerName (DomainName\ServerUser)]
In the Center, under IIS, Double-click on [Request Filtering]
On the Left Panel, click on [Edit Feature Settings]
Make sure all settings in this location match those in the Web Server IIS.
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825