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

后端 未结 28 2221
北荒
北荒 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

    The most probable reason is a Firewall.

    This article contains a set of reasons, which may be useful to you.

    From the article, possible reasons could be:

    • FTP server settings
    • Software/Personal Firewall Settings
    • Multiple Software/Personal Firewalls
    • Anti-virus Software
    • LSP Layer
    • Router Firmware
    • Computer Turned Off
    • Computer Not Plugged In
    • Fiddler

提交回复
热议问题