The maximum string content length quota (8192) has been exceeded while reading XML data

1

Good afternoon.

I'm new to this WCF I have a problem:

  

The maximum string content length quota (8192) has been exceeded while   reading XML data. This quota may be increased by changing the   MaxStringContentLength property on the XmlDictionaryReaderQuotas   object used when creating the XML reader.

I've already searched all the forums and apparently the solution is to increase the variable MaxStringContentLength I've already done it but I still get the error.

my code:

<system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="WSHttpBinding_IServicioDAL" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
      <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
      <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
      <security mode="Message">
        <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
        <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
      </security>
    </binding>
  </wsHttpBinding>
</bindings>
<client>
  <endpoint address="http://miservidor/ServerDalWcf/ServicioDAL.svc"
    binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IServicioDAL"
    contract="ServicioDalWcf.IServicioDAL" name="WSHttpBinding_IServicioDAL">
    <identity>
      <dns value="localhost" />
    </identity>
  </endpoint>
</client>

thanks

    
asked by María Ord 21.03.2017 в 21:56
source

0 answers