Foros del Web » Programación para mayores de 30 ;) » .NET »

Se superó la cuota de tamaño máximo para los mensajes entrantes (65536). Para aumenta

Estas en el tema de Se superó la cuota de tamaño máximo para los mensajes entrantes (65536). Para aumenta en el foro de .NET en Foros del Web. Estoy trabajando en VS2008. Soy nuevo en esto del WCF, y se me presenta este error al tratar de traer un archivo de la DB. ...
  #1 (permalink)  
Antiguo 23/04/2012, 10:33
eoa
 
Fecha de Ingreso: abril-2003
Ubicación: Cartago
Mensajes: 2
Antigüedad: 21 años
Puntos: 0
Exclamación Se superó la cuota de tamaño máximo para los mensajes entrantes (65536). Para aumenta

Estoy trabajando en VS2008. Soy nuevo en esto del WCF, y se me presenta este error al tratar de traer un archivo de la DB.

El web.config de la aplicación es el siguiente
.....
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ISGPService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="2000000" 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://localhost:49350/SGPs/SGPService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISGPService"
contract="ServicioSGP.ISGPService" name="WSHttpBinding_ISGPService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>


Ahora bien la solución donde están los .svc se divide en 3,
uno para el acceso y manipulación de datos, otro para la definición de los objetos y ún último donde se encuentan los .svc.

Dentro de est último directorio hay un web.config el cual tiene la siguiente estructura:
......
<system.serviceModel>
<services>
<service behaviorConfiguration="Bccr.Supen.SistemasInstituc ionales.SI.SGPs.SGPServiceBehavior"
name="Bccr.Supen.SistemasInstitucionales.SI.SGPs.S GPService">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration ="WSHttpBinding_ISGPService" contract="Bccr.Supen.SistemasInstitucionales.SI.SG Ps.ISGPService" >
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>

<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ISGPService" closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
maxReceivedMessageSize="73400320"
maxBufferPoolSize="73400320"
useDefaultWebProxy="true">
<!--70MB-->
<readerQuotas maxArrayLength="73400320" />
</binding>
</wsHttpBinding>
</bindings>

<behaviors>
<serviceBehaviors>
<behavior name="Bccr.Supen.SistemasInstitucionales.SI.SGPs.S GPServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>

y el app_config tiene lo siguiente:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="Bccr.Supen.SistemasInstitucionales.SI.Datos. Service1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="Bccr.Supen.SistemasInstituc ionales.SI.Datos.Service1Behavior"
name="Bccr.Supen.SistemasInstitucionales.SI.Datos. Service1">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration ="WSHttpBinding_Service" contract="Bccr.Supen.SistemasInstitucionales.SI.Da tos.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/Bccr.Supen.SistemasInstitucionales.SI.Datos/Service1/" />
</baseAddresses>
</host>
</service>
</services>

<!--Agregado-->
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_Service" closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
maxReceivedMessageSize="73400320"
maxBufferPoolSize="73400320"
useDefaultWebProxy="true">
<!--70MB-->
<readerQuotas maxArrayLength="73400320" />
</binding>
</wsHttpBinding>
</bindings>

</system.serviceModel>
</configuration>


Ya he agregado ese parametro en todos los archivos y nada que funciona, hago las pruebas con el wfctestclient y tampoco.

Etiquetas: entrantes, mensajes, tamaño, windows, aumentar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:29.