作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我想在 basichtttpbiding 中设置 maxArrayLength。但是,没有配置文件,唯一的方法是创建一个 XmlDictionaryReaderQuotas,System.xml 中不存在,并将其放入 BasicHttpBinding1.ReaderQuotas。
如何设置 maxArrayLength 而不使用配置文件?
编辑:
我不能这样做:basichtttpbiding1.ReaderQuotas.MaxArrayLength = 1000000;因为在此之后我没有任何选项可供选择:basichtttpbiding1.ReaderQuotas。[选项选择]
最佳答案
已解决。
需要手动添加引用:System.Runtime.Serialization
然后 XmlDictionaryReaderQuotas
类将显示在 System.Xml
关于c# - WCF XmlDictionaryReaderQuotas 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10766545/
我想在 basichtttpbiding 中设置 maxArrayLength。但是,没有配置文件,唯一的方法是创建一个 XmlDictionaryReaderQuotas,System.xml 中不
我在向 C# 服务发送(或接收)字节数组时遇到以下异常。 There was an error deserializing the object of type System.Byte[]. The
我是一名优秀的程序员,十分优秀!