Hi,
Thank you for the post. But, we still see the error. Please read below for what all we had tried. Please let us know if there is anything missing or that we should try. APpreciate your help.
We made WCF web service using SOAP (factory: MultipleBaseAddressBasicHttpBindingServiceHostFactory) hosted in SharePoint environment (under ISAPI folder)
We are able to upload larger files (larger than 49KB) in the SP2010 farms but receive "remote server returned an unexpected response: (413) Request Entity Too Large" error after upgrading to SP2013 environment.
After reading some posts, still received the same error message: "remote server returned an unexpected response: (413) Request Entity Too Large".
We wonder if anyone might have any sugegstions to resolve the issue. Thanks in advance!
Changes made are:
(1) in IIS, check IIS Request Filtering features setting for the WCF service > ensure "Maximum Allowed Content Length" is large enough
(2) in IIS, increase UploadReadAheadSize value from 49152 to 52428800 (even to maximal value: 2147483647)
(3) in SP2013 CA > Application Management > Manage web application > select <webapp> > click "General Setting" in the ribbon > ensure "File Upload Size" is large enough
(4) update binding & enpoint in web service's web.config, e.g.
<bindings>
<basicHttpBinding>
<binding maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="<namespace>.<servicename>" behaviorConfiguration="<namespace>.<servicename>Behavior">
<endpoint address="basic" binding="basicHttpBinding" contract="<namespace>.<serviceinterfacename>">
</endpoint>
</service>
</services>
(5) update app.config in application console client, e.g.
<binding name="BasicHttpBinding_<serviceinterfacename>" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" />
</security>
</binding>