The underlying connection was closed错误
程序员文章站
2022-05-07 21:17:45
今天理IIS上Asp.net程序的所有报错日志,发现好报The underlying connection was closed: Unable to connect to the...
今天理IIS上Asp.net程序的所有报错日志,发现好报The underlying connection was closed: Unable to connect to the remote server. 于是搜了下,发现很多人遇到这个异常,可是却没有标准的解决方案,一般有一下几种。
1.如果用了代理,设置正确。
2.如果用了firewall,将firewall禁掉试试。
3.将Lan设置中的Automatically Detect Settings禁掉。
4.重装.Net Framework。
5.如果用了抓取,可以将HttpWebRequest的KeepAlive属性设置为false,HttpWebRequest的KeepAlive属性默认是true
对应我线上的程序,1、2、3、4都可以排除,我的就是抓取时报这个错,采用了第5种方法后,异常消失了。
上一篇: html+css常见标签汇总
推荐阅读
-
Linux 出现telnet: 127.0.0.1: Connection refused错误解决办法
-
64位系统中IIS7运行ASP时出现ADODB.Connection 800a0e7a错误的解决方法
-
The underlying connection was closed错误
-
No operations allowed after connection closed异常的解决方案
-
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
-
Nginx (104: Connection reset by peer )while reading upstream错误解决
-
Centos7---nginx---upstream prematurely closed connection while reading response header from upstream
-
Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054 错误解决
-
Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054 错误解决
-
Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054 错误解决