我已经创建与MySQL数据库的wcf数据服务。我快速地从表格中获取数据。但是当我试图从视图中获取数据时,它引发超时异常。直接在db数据中尝试时,速度非常快。从MySQL视图WCF数据服务超时过期问题
我尝试在web.config中设置以下内容。
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetHttpBinding" maxBufferPoolSize="2147483647" closeTimeout="00:01:00"
openTimeout="00:01:00" maxConnections="10"
receiveTimeout="00:10:00"
sendTimeout="00:10:00"
maxBufferSize="524288" maxReceivedMessageSize="2147483647" />
</netTcpBinding>
</bindings>
<services>
<service name="MyService">
<endpoint address="http://localhost:59825" binding="netTcpBinding"
bindingConfiguration="NetHttpBinding" name="HttpBinding" />
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
仍超时异常。
EDIT1:
当我与表试过,数据也越来越。我在同一个表中创建了一个视图select *。现在也是抛出超时异常。
请帮忙。
谢谢, Saritha。
可以请您给的步骤来做到这一点? –
@ Saritha.S.R http://stackoverflow.com/questions/424358/increasing-the-timeout-value-in-a-wcf-service –
是的。我们的确如此。仅使用WCF服务配置编辑器添加了绑定。 –