SharePoint has its own limitations for CSOM. Unfortunately, these restrictions cannot be configured in central administration and also cannot be set using CSOM for obvious reasons.
When searching for a problem, the solution is mainly set by setting the ClientRequestServiceSettings.MaxReceivedMessageSize property to the required size.
Call the following PowerShell script from the SharePoint Management Shell:
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 209715200 $ws.Update()
This will set the limit to 200 MB.
However, in SharePoint 2013, Microsoft apparently added another configuration parameter to also limit the amount of data that the server should process from the CSOM request (why would someone configure it differently, outside of me ..). After reading a very long SharePoint log file and scanning some disassembled code for the SharePoint server, I found that this parameter can be set using the ClientRequestServiceSettings.MaxParseMessageSize property.
Now we use the following script with SharePoint 2013 and it works great:
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 209715200 $ws.ClientRequestServiceSettings.MaxParseMessageSize = 209715200 $ws.Update()
Hope some people have a headache!
helb
source share