No connection could be made because the target machine actively refused it?

后端 未结 28 2586
北荒
北荒 2020-11-22 01:27

Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too.


System.Net.WebException: Unable to connect         


        
28条回答
  •  独厮守ぢ
    2020-11-22 01:43

    I got this error in an application that uses AppFabric. The clue was getting a DataCacheException in the stack trace. To see if this is the issue for you, run the following PowerShell command:

    @("AppFabricCachingService","RemoteRegistry") | % { get-service $_ }
    

    If either of these two services are stopped, then you will get this error.

提交回复
热议问题