System.Net.WebException: The request was aborted: the request was cancelled

前端 未结 5 476
余生分开走
余生分开走 2021-02-04 06:45

I have a WCF service that has been giving me this error under load conditions (and I can\'t seem to recreate the error otherwise). We\'ve been trying to find a way around it for

5条回答
  •  走了就别回头了
    2021-02-04 07:29

    I had this exact same problem. In my case I was executing requests ASynchronously. I was sending a few hundred requests to the 'server' from my client. I am/was using basicHttpBinding. And in my app.config setting the openTimeout property was set to 60 seconds or one minute. Once I set that to a bigger number like 10 minutes, the problem has gone away.

    So for instance I changed all these values in my app.config file:

    
        
            
                
                    

    to 10 minutes.

提交回复
热议问题