Hello,
I am developing a SharePoint WCF service that takes in a base64 string for file contents. When pushing a request greater than 50kb, the service returns "Error 413 - Request Entity Too Large". I have been messing with the settings in the web.config, following the advice given in some of the other threads on this forum, but nothing has worked so far.
Presumably, the custom service is actually using the settings I defined in the Web.config, since I tried loading the endpoints after making these changes, and I had to resolve some spelling issues and whatnot. But, it's still giving me the same error. Is there anything I'm missing, or have I configured anything incorrectly? Thanks in advance.
ISAPI folder Web.config:
<system.serviceModel><services><service name="Namespace.Service" behaviorConfiguration="SOAPRESTDemoEndpointBehavior"><endpoint address="Endpoint1" binding="basicHttpBinding"
bindingConfiguration="WCFBinding"
name="Service"
contract="Namespace.IService" /><endpoint address="Endpoint2" binding="basicHttpBinding"
bindingConfiguration="WCFBinding"
name="Service"
contract="Namespace.IService" /><endpoint address="Endpoint3" binding="basicHttpBinding"
bindingConfiguration="WCFBinding"
name="Service"
contract="Namespace.IService" /></service></services><bindings><basicHttpBinding><binding name="WCFBinding" maxBufferPoolSize="10487760" maxBufferSize="10487760"
maxReceivedMessageSize="10487760"><readerQuotas maxDepth="10487760" maxStringContentLength="10487760"
maxArrayLength="10487760" maxBytesPerRead="10487760" maxNameTableCharCount="10487760" /></binding></basicHttpBinding></bindings><behaviors><serviceBehaviors><behavior name="SOAPRESTDemoEndpointBehavior"><webHttp /></behavior></endpointBehaviors></behaviors></system.serviceModel>Threads I have looked at:
https://social.technet.microsoft.com/Forums/office/en-US/e4f9c5bb-d9d6-4f47-a4b8-6365f90cb544/sharepoint-hosted-wcf-service-generating-request-entity-too-large-413-error?forum=sharepointdevelopment
https://social.technet.microsoft.com/Forums/office/en-US/82d5ac95-837c-43eb-a0ad-ed7177d6b4a8/request-entity-too-large-error-for-sharepoint-2013-custom-rest-service?forum=sharepointdevelopment
https://social.technet.microsoft.com/Forums/office/en-US/48facfba-15d4-4e7e-998f-7e88ff9afc21/wcf-restful-services-running-on-azure-fails-with-413-request-entity-too-large?forum=windowsazuredevelopment
https://social.technet.microsoft.com/Forums/office/en-US/2305f043-714d-4cd3-a286-b46a49f089ab/cannot-consume-wcf-service-413-request-entity-too-large?forum=biztalkgeneral