WCF服务-客户端接收通信异常

WCF服务-客户端接收通信异常,wcf,communicationexception,Wcf,Communicationexception,目前,我们连接到一个WCF服务。 目前我有间歇性的沟通异常 ->异常CommunicationException System.ServiceModel.CommunicationException:服务器返回了无效的SOAP错误。有关更多详细信息,请参阅InnerException。-->System.Xml.XmlException:读取Xml数据时已超过最大字符串内容长度配额8192。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxStri

目前,我们连接到一个WCF服务。 目前我有间歇性的沟通异常

->异常CommunicationException System.ServiceModel.CommunicationException:服务器返回了无效的SOAP错误。有关更多详细信息,请参阅InnerException。-->System.Xml.XmlException:读取Xml数据时已超过最大字符串内容长度配额8192。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxStringContentLength属性来增加此配额

我已经更新了配置文件,将MaxStringContentLength设置为2147483647

仍然间歇性地出现这些错误

有没有关于是什么导致他们的建议

提前感谢,, 菲奥娜

更新 以下是配置文件中的绑定:

<binding name="BasicHttpBinding_ServiceInterface" closeTimeout="00:01:00"
           openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
           allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
           maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
           messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
           useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
             maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="Message">
            <message clientCredentialType="Certificate"/>
          </security>
        </binding>

您还需要设置Binding.MaxArrayLength、ReaderQuotas.MaxBytesPerRead以使其正常工作

谢谢德拉克夫。我应该在我的原始帖子中提到,我还更新了其他绑定值。请查看我的更新,其中包括我的绑定。您对该服务有控制权吗?大体上,您的客户机的配置是好的,所以我怀疑服务配置可能不正确。您是否可以在服务上创建测试方法,然后返回大于8192字节的大数据块?我认为您应该能够复制异常。