Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Sharepoint 2016 - The request message is too big

$
0
0

Anyone was able to solve this issue. When wiring C# client code to upload a file to a document library in Sahrepoint 2016, I get this error message: The request message is too big. The server does not allow messages larger than 2097152 bytes.

In Sharepoint 2013, I used to resolve this issue by using this Powershell script:

$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 5242880
$ws.ClientRequestServiceSettings.MaxParseMessageSize  = 5242880
$ws.Update()

But in Sharepoint 2016, this code doesn't work. I was hoping if someone was able to get past this issue.

Thanks in advance.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>