由于wcf服务的接口太多造成添加或刷新服务时报错,提示“读取XML数据时,超出最大名称表计数配额(16384)、、、让修改maxNameTableCharCount的值”,但我在服务端的app.config改为如下,还是同样报错 <netTcpBinding>
<binding name="程序配置" closeTimeout="00:00:00" sendTimeout="00:10:00"
maxBufferPoolSize="524288000" maxBufferSize="65536000" maxReceivedMessageSize="65536000" >
<readerQuotas maxArrayLength="1683400" maxDepth="32" maxStringContentLength="8192" maxBytesPerRead="4096" maxNameTableCharCount="1638400"/>
</binding>
</netTcpBinding>我试着把接口数量改少了很多以后就又可以正常刷新,考虑方便,的确想在一个服务内做很多接口。仔细看了看客气端的配置文件的某个服务的配置是这样的
<binding name="NetTcpBinding_ISystemOperate" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288000"
maxBufferSize="65536000" maxConnections="10" maxReceivedMessageSize="65536000">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>奇怪的是我在服务端的配置上明明写的是“16384000”,但添加服务后客户端配置文件上还是“16384”,,不知道为什么改不了这个值,造成我不法在一个服务内写更多的接口,请遇到过的朋友们分享一下经验,谢谢
<binding name="程序配置" closeTimeout="00:00:00" sendTimeout="00:10:00"
maxBufferPoolSize="524288000" maxBufferSize="65536000" maxReceivedMessageSize="65536000" >
<readerQuotas maxArrayLength="1683400" maxDepth="32" maxStringContentLength="8192" maxBytesPerRead="4096" maxNameTableCharCount="1638400"/>
</binding>
</netTcpBinding>我试着把接口数量改少了很多以后就又可以正常刷新,考虑方便,的确想在一个服务内做很多接口。仔细看了看客气端的配置文件的某个服务的配置是这样的
<binding name="NetTcpBinding_ISystemOperate" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288000"
maxBufferSize="65536000" maxConnections="10" maxReceivedMessageSize="65536000">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>奇怪的是我在服务端的配置上明明写的是“16384000”,但添加服务后客户端配置文件上还是“16384”,,不知道为什么改不了这个值,造成我不法在一个服务内写更多的接口,请遇到过的朋友们分享一下经验,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货