Problem:
Migration: SharePoint
Error: The request message is too big. The server does not allow messages larger than 2097152.
Solution:
There are two ways to accomplish this through Powershell command and editing the web.config file under IIS.
PowerShell Command:
PS C:\Users\administrator.PSIGEN $ws=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
PS C:\Users\administrator.PSIGEN $ws.ClientRequestServiceSettings.MaxReceivedMessageSize=2147483647
PS C:\Users\administrator.PSIGEN $ws.Update()
PS C:\Users\administrator.PSIGEN $ws.ClientRequestServiceSettings.MaxParseMessageSize=2147483647
PS C:\Users\administrator.PSIGEN $ws.Update()
After this has been entered into the PowerShell you will need to run iisreset in CMD. If the customer cannot iisreset they need to manually edit the IIS webconfig.
IIS Directory: wwwroot/wss/virtualdirectories/80/
- Edit the web.config for the sharepoint server
- Under
- Check attribute
- Desired Attribute: maxRequestLength
- Make sure they're set to 2147483647
- Example: maxRequestLength="2147483647" requestLengthDiskThreshold="2147483647" executionTimeout="18000"/
Comments
Please sign in to leave a comment.