One of the out of the box limitations in SharePoint 2010 is that the OfficialFile.asmx web sevice (http://<server>/<site>/_vti_bin/OfficialFile.asmx) only allows for files that are under 50Mb in size. When you are sending individual files, that is not so bad, considering the default Max File Size setting on a web application is also 50Mb. But, most people up the limit on the web application to a larger size.
The problem is that even if you update the limit on the web application to say, 250Mb, this setting does not carry forward to the web service. This is because the web service is not specific to the web application. It has it own settings and lives under the 14 root (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\OfficialFile.asmx), not the web application virtual directory. To make matters worse, if you are using the new feature of “Document Sets” in SharePoint 2010, the entire document set must be under 50Mb. This is because a document set is sent to the web service as a .ZIP file which contains metadata and all of the documents that are in the document set.
Luckily, there is a solution – and this has been approved my Microsoft Support.
ULS Error Log Example
When you try to submit a file/document set that exceeds the limit, you will notice the following errors in your ULS:
03/27/2012 16:26:59.85 w3wp.exe (0x4700) 0x2408 SharePoint Foundation General f855 Monitorable OfficialFile::SubmitFile: Encountered error when sending file http://server/sites/sitename/Library/DocSetName.zip to http://server/sites/sitename/_vti_bin/OfficialFile.asmx: There was an exception running the extensions specified in the config file. —> Maximum request length exceeded.
03/27/2012 16:26:59.85 w3wp.exe (0x4700) 0x2408 SharePoint Foundation General 7022 Critical The http://server/sites/sitename/_vti_bin/OfficialFile.asmx site is not properly configured for this request.
- Make sure that you have set the max file size on the web application
- Central Admin –> Manage Web Applications –> Select the Web Application –> General Settings –> Maximum Upload Size
- Open the following file and edit on each SharePoint server:
- C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\web.config
- Add the following section, then save and close
<httpRuntime maxRequestLength=”2097151″ executionTimeout=”240″ />