我有一个 WCF 网络服务,它向客户端发送(返回)DataTable。现在我在数据表中有 47,000 条记录。在第一次调用时,它花费了太多时间来获取数据。
我已将生成序列化程序集设置为 ' on ' 并尝试在配置文件中使用 useDefaultWebProxy="false"但问题无法解决。
这是我的 app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_I123Services" closeTimeout="00:30:00"
openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="500000000"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="false"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="2000000"
maxBytesPerRead="2000000" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:30:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://123.com/123services.svc" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_I123Services" contract="123Services.I123Services"
name="WSHttpBinding_I123Services" />
</client>
</system.serviceModel>
</configuration>
谁能帮我找到解决方案。谢谢你。