WCF Service , how to increase the timeout?

后端 未结 4 1656
醉酒成梦
醉酒成梦 2020-11-29 15:43

Might seem like a silly question, but everything in WCF seems a lot more complicated than in asmx, how can I increase the timeout of an svc service?

Here is what I h

4条回答
  •  没有蜡笔的小新
    2020-11-29 16:09

    Got the same error recently but was able to fixed it by ensuring to close every wcf client call. eg.

    WCFServiceClient client = new WCFServiceClient ();
    //More codes here
    // Always close the client.
    client.Close();
    

    or

    using(WCFServiceClient client = new WCFServiceClient ())
    { 
        //More codes here 
    }
    

提交回复
热议问题