向WCF服务发送字节数组时出错 [英] Error sending a byte array to a WCF service

查看:80
本文介绍了向WCF服务发送字节数组时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
当我通过Windows应用程序将字节[]中的数据发送到WCF服务时,我的绑定是WSHttpBinding.我不断收到以下错误:

Hi!
My binding is WSHttpBinding when I''m sending data in a byte[] through a windows application to my WCF service. I keep getting the following error:

"max array lengh limit exceeds of xmldictionaryreaderQuotas"



感谢您的时间!



Thanks for your time!

推荐答案

听起来像您必须在WCF的配置文件的binding部分中将readerQuotas设置为更高的值.此问题已在Stackoverflow上的以下线程中处理: http://stackoverflow.com/questions/464707/maximum- array-length-quota [ ^ ].请帮自己一个忙,并阅读整个主题.谢谢!

问候,

—MRB
Sounds like you have to set the readerQuotas to a higher value in your binding section of your WCF''s configuration file. The issue was handled in this thread on Stackoverflow: http://stackoverflow.com/questions/464707/maximum-array-length-quota[^]. Please do yourself a favor and read the whole thread. Thank you!

Regards,

—MRB


这篇关于向WCF服务发送字节数组时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆