tengo el problema con el siguiente error: "La cuota de tamaño máximo de mensaje para los mensajes entrantes (65536) se ha excedido Para aumentar la cuota, utilice la propiedad MaxReceivedMessageSize en el elemento de unión apropiada."¿Por qué mi servicio WCF no está cargando mi configuración de enlace?
Así hice un poco de investigación y descubrió que necesitaba para aumentar el búfer y el tamaño del mensaje, aquí está mi WCF archivo de configuración de servicio:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="default" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"/>
</wsHttpBinding>
</bindings>
<services>
<service name="WCF.Service.Service">
<endpoint address="ws" name="ws" bindingConfiguration="default" binding="wsHttpBinding" contract="WCF.Service.Contracts.IService" />
<endpoint address="mex" binding="mexHttpBinding" name="mex" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="True" />
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Cuando ejecuto el servicio en el cliente de prueba WCF y miro la configuración de cliente generado depositarlas no tiene mi encuadernación:
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="ws" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<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" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:37444/Service.svc/ws" binding="wsHttpBinding"
bindingConfiguration="ws" contract="IService" name="ws">
<identity>
<userPrincipalName value="[email protected]" />
</identity>
</endpoint>
</client>
</system.serviceModel>
estoy perdido como por qué mi configuración de enlace es NO siendo aplicada !? WCF Test Client está configurado para regenerar siempre la configuración también. También traté de actualizar la referencia de servicio en una aplicación de usuario que consume, pero hace no obtener la configuración de enlace actualizada tampoco. Cualquier sugerencia sería muy apreciada. ¡Gracias!
Me parece que su cliente está recibiendo su enlace ... –
Pero no tiene mis valores maxBufferPoolSize y maxReceivedMessageSize más grandes ... – MisterIsaak