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

后端 未结 28 2762
北荒
北荒 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:41

    For service reference within a solution.

    1. Restart your workstation

    2. Rebuild your solution

    3. Update service reference in WCFclient project

    At this point, I received messsage (Windows 7) to allow system access. Then the service reference was updated properly without errors.

提交回复
热议问题