我有一个wsf服务和一个客户端应用程序。在试图通信客户端和服务时,我得到了以下消息:
"格式化程序在尝试反序列化消息时引发了异常:尝试反序列化参数http://tempuri.org/:blob时出错。 InnerException消息为'There was an error deserializing the object of type FileBlob. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 25931.'。请参见InnerException以获取更多详细信息。"
我有自定义绑定元素,但它不允许我插入“readerQuotas”部分。在客户端和服务配置文件中,我都有以下绑定元素:
"格式化程序在尝试反序列化消息时引发了异常:尝试反序列化参数http://tempuri.org/:blob时出错。 InnerException消息为'There was an error deserializing the object of type FileBlob. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 25931.'。请参见InnerException以获取更多详细信息。"
我有自定义绑定元素,但它不允许我插入“readerQuotas”部分。在客户端和服务配置文件中,我都有以下绑定元素:
<customBinding>
<binding name="LicenseServiceBinding"
closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00">
<security authenticationMode="UserNameOverTransport">
<localClientSettings maxClockSkew="00:07:00" />
<localServiceSettings maxClockSkew="00:07:00" />
</security>
<windowsStreamSecurity />
<httpsTransport maxReceivedMessageSize="2147483646"/>
</binding>
</customBinding>
非常感谢您的帮助:)