Setting Timeout Value For .NET Web Service

前端 未结 2 1113
难免孤独
难免孤独 2020-12-01 07:53

I have a web service written in C# that is living on a SharePoint site. I have modified the web.config with the following code:


  <         


        
2条回答
  •  醉话见心
    2020-12-01 08:20

    After creating your client specifying the binding and endpoint address, you can assign an OperationTimeout,

    client.InnerChannel.OperationTimeout = new TimeSpan(0, 5, 0);
    

提交回复
热议问题