What is the Maximum Message size in WCF?

Posted by Gg under WCF on 7/19/2011 | Points: 10 | Views : 33049 | Status : [Member] | Replies : 3
Hi,

What is the Maximum Message size in WCF?

Thanks,
gg.




Responses

Posted by: Lakn2 on: 7/19/2011 [Member] Starter | Points: 25

Up
0
Down
Refer this

http://stackoverflow.com/questions/1708804/wcf-maximum-message-size-quota

Thanks&Regards
LakshmiNarayana Nalluri.

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RaviRanjanKr on: 7/19/2011 [Member] Starter | Points: 25

Up
0
Down
The given link having same question with long thread discussion. have a go there and read it.
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/bc717eb1-f0a6-4932-868b-8d63b44f598d/
I hope it will help you.

Thanks
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Graha on: 7/20/2011 [Member] Starter | Points: 25

Up
0
Down
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.

In Web.config file, u added these lines......
<System.ServiceModel>
......

<bindings>


<customBinding>
<binding name="customBinding0">
<binaryMessageEncoding>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
</binaryMessageEncoding>
<httpTransport maxReceivedMessageSize="2147483647 " maxBufferSize="2147483647" />
</binding>
<binding name="customBinding1">
<binaryMessageEncoding>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
</binaryMessageEncoding>
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
<binding name="customBinding2">
<binaryMessageEncoding>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
</binaryMessageEncoding>
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>





</bindings>


.....
</System.ServiceModel>



I hope that this will help for you....

Thanks
GrahaLakshmi Ramar

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response