So beheben Sie den Fehler beim Hochladen großer Dateien 404 auf IIS | Schritt-für-Schritt-Anleitung. The following error occurs when uploading large files to the website.
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.
To enable uploading large files you have to change a setting in IIS.
NOTIZ: The limit is approximately 28,6 MB because the limit of maxAllowedContent Length is 30000000 Bytes.
To change the maximum upload setting, named “maxAllowedContent Length”, Folgendes machen:
1. Log on to the server that holds the IIS website, and then click Start, klicken Programs, klicken Verwaltungstools, klicken Internetinformationsdienste (Iis) Manager;
2. Expand the website that you want to increase the maxAllowedContent Length;
3. Double-click the Request Filtering icon in the main window
NOTIZ: if you don’t have the Request Filtering icon, you need to install it through the Add Roles Option. Get the instructions below.
4. Click the Hidden Segment Tab;
5. Right-click web.config und klicken Edit Feature Setting;
6. A new window named Edit Request Filtering Settings appears;
7. Unter Request Limits heading. enter a new larger value in the Maximum allowed content length (Bytes) box;
8. Klicken OK to apply the change.
Setup Request Filtering
The default installation of IIS 7 and later includes the Request Filtering role service or feature. If the Request Filtering role service or feature is uninstalled, you can reinstall it using the following steps.
Windows-Server 2012 R2
1. On the taskbar, klicken Servermanager.
2. In Servermanager, click the Verwalten menu and then click Fügen Sie Rollen und Funktionen hinzu.
3. Im Fügen Sie Rollen und Funktionen hinzu wizard, klicken Nächste. Select the installation type and click Nächste. Select the destination server and click Nächste.
4. Auf der Server Roles page, expandieren Webserver (Iis), expandieren Webserver, expandieren Security, und dann auswählen Request Filtering. Klicken Nächste.
5. Auf der Select features page, klicken Nächste.
6. Auf der Confirm installation selections page, klicken Installieren.
7. Auf der Results page, klicken Schließen.
How To
Note for IIS 7.0 users: Some of the steps in this section may require that you install the Microsoft Administration Pack for IIS 7.0, which includes a user interface for request filtering. To install the Microsoft Administration Pack for IIS 7.0, please see the following URL iis.net/expand/AdministrationPack
How to add a hidden segment
- Offen Internetinformationsdienste (Iis) Manager:
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- On the taskbar, klicken Servermanager, klicken Werkzeuge, and then click Internetinformationsdienste (Iis) Manager.
- If you are using Windows 8 or Windows 8.1:
- Hold down the Fenster key, press the letter X, and then click Bedienfeld.
- Klicken Verwaltungstools, and then double-click Internetinformationsdienste (Iis) Manager.
- If you are using Windows Server 2008 or Windows Server 2008 R2:
- On the taskbar, klicken Start, point to Verwaltungstools, and then click Internetinformationsdienste (Iis) Manager.
- If you are using Windows Vista or Windows 7:
- On the taskbar, klicken Start, and then click Bedienfeld.
- Double-click Verwaltungstools, and then double-click Internetinformationsdienste (Iis) Manager.
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- Im Connections pane, go to the connection, site, application, or directory for which you want to modify your request filtering settings.
- Im Heim pane, double-click Request Filtering.
- Im Request Filtering pane, click the Hidden Segments Tab, and then click Add Hidden Segment… im Aktionen pane.
- Im Add Hidden Segment Dialogfeld, enter the relative path that you want to hide, and then click OK.