WCF/WF - Communication Exception in wcf when i try to get it in Client side

Asked By MySpider DotNet on 10-Dec-10 11:17 AM
Hi,
 
  When it try to bind the value from wcf to client side using net.tcp binding am unable to get the value, My WCF method return Data Table to client side am reviving it in client side. But am getting exception as below

The WCF is self hosted. 
Anoop S replied to MySpider DotNet on 10-Dec-10 12:35 PM

The timeout is called "sendTimeout" and you can configure it on your binding section in your config file, or in code - your choice.

config:

<system.serviceModel>
  <bindings>
  <netTcpBinding>
    <binding sendTimeout="00:03:00" />
  </netTcpBinding>
  </bindings>

This will set the timeout to 3 minutes.