Setting Timeout Value For .NET Web Service

前端 未结 2 1111
难免孤独
难免孤独 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:37

    Try setting the timeout value in your web service proxy class:

    WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
    myProxy.Timeout = 100000; //in milliseconds, e.g. 100 seconds
    

提交回复
热议问题