Come correggere l'errore di caricamento di file di grandi dimensioni 404 sull'IIS | Guida passo dopo passo. 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.
NOTA: The limit is approximately 28,6 MB because the limit of maxAllowedContent Length È 30000000 byte.
To change the maximum upload setting, named “maxAllowedContent Length", Fai quanto segue:
1. Log on to the server that holds the IIS website, e quindi fare clicInizio, clicPrograms, clicAdministrative Tools, clicInternet Information Services (IIS) Manager;
2. Expand the website that you want to increase the maxAllowedContent Length;
3. Fare doppio clic suRequest Filtering icon in the main window
NOTA: if you don’t have the Request Filtering icon, you need to install it through theAdd Roles opzione. Get the instructions below.
4. Clicca ilHidden SegmentTab;
5. Right-click web.config e cliccaEdit Feature Setting;
6. A new window namedEdit Request Filtering Settings appare;
7. SottoRequest Limitsintestazione. enter a new larger value in theMaximum allowed content length (Bytes) box;
8. ClicOK 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.
Server Windows 2012 R2
1. On the taskbar, clic Gestore del server.
2. In Gestore del server, clicca il Maneggio menu and then click Aggiungi ruoli e funzionalità.
3. Nel Aggiungi ruoli e funzionalità wizard, clic Prossimo. Select the installation type and click Prossimo. Select the destination server and click Prossimo.
4. Sul Ruoli del server pagina, espandere Server web (IIS), espandere Server web, espandere Sicurezza, e quindi selezionare Request Filtering. Clic Prossimo.
5. Sul Select features pagina, clic Prossimo.
6. Sul Confirm installation selections pagina, clic Installare.
7. Sul Risultati pagina, clic Vicino.
How To
Note for IIS 7.0 utenti: 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
- Aprire Internet Information Services (IIS) Manager:
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- On the taskbar, clic Gestore del server, clic Utensili, e quindi fare clic Internet Information Services (IIS) Manager.
- If you are using Windows 8 or Windows 8.1:
- Hold down the finestre chiave, press the letter X, e quindi fare clic Pannello di controllo.
- Clic Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
- If you are using Windows Server 2008 or Windows Server 2008 R2:
- On the taskbar, clic Inizio, point to Administrative Tools, e quindi fare clic Internet Information Services (IIS) Manager.
- If you are using Windows Vista or Windows 7:
- On the taskbar, clic Inizio, e quindi fare clic Pannello di controllo.
- Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- Nel Connections pane, go to the connection, luogo, application, or directory for which you want to modify your request filtering settings.
- Nel Casa pane, double-click Request Filtering.
- Nel Request Filtering pane, clicca il Hidden Segments scheda, e quindi fare clic Add Hidden Segment… nel Azioni pane.
- Nel Add Hidden Segment la finestra di dialogo, enter the relative path that you want to hide, e quindi fare clic OK.