25 Kasım 2015 Çarşamba

WCF Maximum Message Size Hatası

Bu hatayı her zaman değil servisten çekilen verinin boyutu 65536'ten büyük ise almaktasınız.

Hata metni aşağıdaki gibi ise;

"The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."

servisi şu şekilde değiştirmeniz gerekmektedir.


<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="****" allowCookies="true" maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647"
maxArrayLength="2147483647" />
</binding>
<binding name="****1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="*****"
binding="basicHttpBinding" bindingConfiguration="****"
contract="**.**" name="*****" />
<endpoint address="***" binding="basicHttpBinding"
bindingConfiguration="KodAYSWebServiceSoap1" contract="**.**"
name="WebServiceSoap1" />
</client>
</system.serviceModel>


Hiç yorum yok:

Yorum Gönder