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.