我已经把客户端的app.config的相应字段设成最大值,为什么还是不行?
设置如下:
<binding name="WSHttpBinding_ISettingServ" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="true" transactionFlow="true" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="214748364"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="655360" maxStringContentLength="214748364" maxArrayLength="214748364"
maxBytesPerRead="655360" maxNameTableCharCount="655360" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
</security>
</binding>望各位高手指点。
设置如下:
<binding name="WSHttpBinding_ISettingServ" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="true" transactionFlow="true" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="214748364"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="655360" maxStringContentLength="214748364" maxArrayLength="214748364"
maxBytesPerRead="655360" maxNameTableCharCount="655360" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
</security>
</binding>望各位高手指点。
MaxItemsInObjectGraph Quta Size超过65536(InnerException:System.Runtime.SerializationException)还要设置 dataContractSerializer
<behavior name="NewBehavior">
<dataContractSerializer maxItemsInObjectGraph="65536000" />
</behavior>