An unhandled exception of type "System.ServiceModel.CommunicationException" occurred in the mscorlib.dll file

I get the following error when calling a method in a web service not developed by me.

An unhandled exception of type "System.ServiceModel.CommunicationException" occurred in mscorlib.dll

This happens not only on my local development machine, but also on the client server when deploying the software.

I am currently using Visual Studio 2010.

+4
source share
2 answers

CommunicationException InnerException : (65536). , MaxReceivedMessageSize . , .

<bindings>
  <basicHttpBinding>
    <binding name="R2MSBulkUploadSoap" allowCookies="true"
             maxReceivedMessageSize="20000000"
             maxBufferSize="20000000"
             maxBufferPoolSize="20000000">
      <readerQuotas maxDepth="32"
           maxArrayLength="200000000"
           maxStringContentLength="200000000"/>
    </binding>
  </basicHttpBinding>
</bindings>

+8

MSDN, , :

CommunicationException , . , CommunicationException (FaultException FaultException), . , CommunicationException , CommunicationException.

0

Source: https://habr.com/ru/post/1526324/


All Articles