Analytics

2011年1月27日 星期四

[WCF]解決 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.


問題

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.
當Client在呼叫WCF的API時,出現以下的訊息
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.

解決方法

打開Client的config檔案,將以下屬性的值加大:
屬性名稱 預設值 可加大範圍
maxBufferSize 655360 655360~2147483647
maxBufferPoolSize 655360 655360~2147483647
maxReceivedMessageSize 655360 655360~2147483647
maxStringContentLength 655360 655360~2147483647
maxArrayLength 655360 655360~2147483647
maxBytesPerRead 655360 655360~2147483647

沒有留言:

熱門文章