c# - WCF Data Service-Timeout expired issue from mysql view -
i have created wcf datatservices mysql db. getting data tables in quick flash. when tried data view, throwing timeout exception. when tried directly in db data getting quickly.
i tried setting following in 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>
still timeout exception.
edit1:
when tried table, data getting. created view select * same table. throwing timeout exception.
please help.
thanks, saritha.
<system.servicemodel> <bindings> <nettcpbinding> <binding name="longtimeoutbinding" receivetimeout="00:10:00" sendtimeout="00:10:00"> <security mode="none"/> </binding> </nettcpbinding> </bindings> <services> <service name ="longtimeoutservice" behaviorconfiguration="longtimeoutbehavior"> <endpoint address="net.tcp://localhost/longtimeout/" binding="nettcpbinding" bindingconfiguration="longtimeoutbinding"> </endpoint> </service> ....
edit:
if not getting plz visit link:explaination of different timeout types
Comments
Post a Comment