An existing connection was forcibly closed by the remote host

后端 未结 12 2101
说谎
说谎 2020-11-22 09:26

I am working with a commercial application which is throwing a SocketException with the message,

An existing connection was forcibly closed by the rem

12条回答
  •  情书的邮戳
    2020-11-22 09:50

    Had the same bug. Actually worked in case the traffic was sent using some proxy (fiddler in my case). Updated .NET framework from 4.5.2 to >=4.6 and now everything works fine. The actual request was:
    new WebClient().DownloadData("URL");
    The exception was:

    SocketException: An existing connection was forcibly closed by the remote host

提交回复
热议问题