WCF 3.0服务合同方法将返回992行但不返回993行。 50列可观察集合

时间:2010-05-16 20:59:48

标签: wcf

当我尝试使用我的测试控制台应用程序运行它时...得到错误 接收到 - http://d3w9501.americas.hpqcorp.net/SimpleWCF/SimpleWCF.svc的HTTP响应时发生错误。这可能是由于服务端点绑定不使用HTTP协议。这也可能是由于服务器中止HTTP请求上下文(可能是由于服务关闭)。有关详细信息,请参阅服务器日志。

当我尝试从我的silverlight应用程序运行它时会弹出一个登录框。

这是web.config中的serviceModel配置

                                                                                                

      <serviceDebug includeExceptionDetailInFaults="True"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <basicHttpBinding>
    <binding name="WSBigQuotaConfig" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2097152" maxBufferPoolSize="524288" maxReceivedMessageSize="2097152" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="2097152" maxArrayLength="2097152" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
        <message clientCredentialType="UserName" algorithmSuite="Default"/>
      </security>
    </binding>
  </basicHttpBinding>
</bindings>

1 个答案:

答案 0 :(得分:1)

我在readerQuotas中看到了一大堆限制,

2097152/990 =每行2k,对于50列(平均40个字符串)来说似乎不是很多。

所以我认为你只是达到了一个极限。