The underlying connection was closed错误
程序员文章站
2022-12-01 18:15:38
今天理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种方法后,异常消失了。
上一篇: linux下maven项目clean失败
推荐阅读
-
Connection closed by foreign host. Disconnected from remote host
-
WN7 上IIS7运行asp+access网站出现错误: ADODB.Connection 错误
-
django的使用INNODE的方式,排除错误MySQL Strict Mode is not set for database connection 'default'
-
ORA-12537: TNS:connection closed
-
Python做有道翻译的的时候报http.client.RemoteDisconnected: Remote end closed connection without response
-
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