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

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

    In my scenario, I have two applications:

    • App1
    • App2

    Assumption: App1 should listen to App2's activities on Port 5000

    Error: Starting App1 and trying to listen, to a nonexistent ghost town, produces the error

    Solution: Start App2 first, then try to listen using App1

提交回复
热议问题