Problem:
Running Windows Server 2008 R2 and PSIcapture cannot Migrate files above 40 MB to SharePoint.
This error is listed in the logs:
[11/19/2013 3:35:26 PM - Error - v5.0.0.21]
Error migrating Batch.
Batch: 20131008.130412 (Auto Import)
Migration: Microsoft SharePoint Direct
Error: Failed to add file http://legal/LegalContracts/US-6.pdf to SharePoint.
There was an exception running the extensions specified in the config file. --- Maximum request length exceeded.
Solution:
There are 3 places that need to be checked for upload size.
- Web.config located on the IIS Server and SharePoint Server(C:\inetpub\wwwroot\wss\VirtualDirectories\(SiteName)
- Request Filtering located under the IIS Service Manager.
- The Max Upload Size located within SharePoint Central Administration.
1.) To edit the web.config go to the path listed in number 1. If the path does not exist you are not on the SharePoint Server. Select the proper (SiteName) and find the web.config file. Right click to open with notepad and Search for maxrequestlength. There should be two entries that are set to "51200". This measurement is in KB not B as I made the mistake of this earlier. Change the number to match the max upload size within SharePoint that we will go over later. Make sure to find both entries and change them to the same number as the lower will supersede the higher number. Example if SharePoint Max Upload Size is set to 1024 MB you will need to set the number to be 1024000 KB. (Note: This will need to be change on all IIS Servers where SharePoint can be routed to. Also, look to the diagram.jpg for a visual reference to what the numbers should look like within the web.config.)
2.) Open IIS and select Request Filtering. Select the option "Open Feature" then select "Edit Feature Settings...". Change the value "Maximum allowed content length (Bytes):" to be the same number as the SharePoint Max Upload Size. An example if SharePoint is set to 1024 MB then Request Filtering will need to be set to 1073741824 B.
3.) In Central Administration, in Application Management, click Manage web applications. Select the application (for example, SharePoint - 80). On the Web Applications ribbon, click the down arrow on the General Settings button. Click General Settings. Scroll to Maximum Upload Size. Set the property to the same number in this case 1024 MB then Click OK.
You should now be able to upload up to 1GB of data at a time to SharePoint using an external Application like PSI:Capture.
Comments
Please sign in to leave a comment.