0

maxStringCount is exceeded エラーが発生し、問題の修正について多くのことを読みました (つまり、http バインディングを使用している場合)。

私にとっての問題は、netTcpBinding を使用していることです。だから私はbindingConfigurationに何を入れるべきかわからない..ここに私のapp.configがあります:

<services>
  <service behaviorConfiguration="ExStreamWCF.Service1Behavior"
    name="ExStreamWCF.Service1">
    <endpoint address="" binding="netTcpBinding" bindingConfiguration=""
      contract="ExStreamWCF.IService1">
      <identity>
        <dns value="Devexstream-2.anchorgeneral.local" />
        <!--<dns value="vmwin2k3sta-tn2" />-->
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
      contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://Devexstream-2:8080/Service" />
        <!--<add baseAddress="net.tcp://vmwin2k3sta-tn2:8080/Service" />-->
      </baseAddresses>
    </host>
  </service>

何か案は?

ありがとう、

ジェイソン

4

1 に答える 1

2

maxStringContentLength のことですか? その場合は、他のバインディングに対して行う構成ファイルの同じセクション (Binding セクションの ReaderQuotas セクション) でそれを設定します。すなわち:

<Bindings>
  <netTcpBinding>
    <binding name=".....>
      <readerQuotas maxStringContentLength="8192" .... />
    </binding>
  </netTcpBinding>
</Bindings>

何か別の意味がある場合は、もう少し詳細を教えていただけますか?

于 2011-07-01T03:29:06.343 に答える