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 @   花儿笑弯了腰  阅读(545)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示