Cannot save document with large file

Problem

A document is created in the document repository and a heavy file is selected. When saving changes cannot be accepted and error message indicates SOAP error. Log file shows:

System.Exception: Failure to call server ---> System.ServiceModel.EndpointNotFoundException.

Attached file is heavy, likely more than 30 MB.

Solution

SOAP interface of the web server has a limit on how large files can be when transferred to the server. By default this limit is 30 MB. Solution is either to use less heavy files or to alter the buffer sixe located in web.config. This is the setting to adjust:

<bindings>
<basicHttpBinding>
<binding name="AssertSoapServiceBinding" maxBufferSize="30000000" maxReceivedMessageSize="30000000" maxBufferPoolSize="15000000" closeTimeout="00:00:10" openTimeout="00:00:20" receiveTimeout="00:01:00" sendTimeout="00:01:00" transferMode="Buffered">
<readerQuotas maxArrayLength="15000000" maxBytesPerRead="15000000" maxStringContentLength="15000000" />
</binding>
</basicHttpBinding>
</bindings>