Fork me on GitHub

WebService各种错误记录

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.
修改: maxReceivedMessageSize与maxBufferSize的值

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://xxx.com/:GetActiveResponse. The InnerException message was 'There was an error deserializing the object of type TESTHomeinnsApi.Homeinns.GetActiveResponseBody. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 9827.'.  Please see InnerException for more details.
修改maxStringContentLength的值

 

Refer:
MaxArrayLength:
http://scorpiotek.com/blog/?p=393
2G: http://social.msdn.microsoft.com/Forums/zh-CN/wcf/thread/bbc9eae4-74f6-4dfd-a813-f61a7bbfcf0b
http://www.vishwamohan.com/post/2009/08/03/WCF-Service-Error-The-maximum-message-size-quota-.aspx
http://blog.csdn.net/faunjoe/article/details/4636074

posted @ 2013-05-17 19:40  花儿笑弯了腰  阅读(545)  评论(0编辑  收藏  举报