The underlying connection was closed错误

转载 2016年06月01日 10:53:24
今天理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种方法后,异常消失了。


come from http://www.2cto.com/kf/201301/182249.html

解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"

关于”The underlying connection was closed: A connection that was expected to be kept alive was closed”...

HttpWebRequest:基础连接已关闭异常:The underlying connection was closed。

今天理IIS上Asp.net程序的所有报错日志,发现好报The underlying connection was closed: Unable to connect to the remote se...
  • wlanye
  • wlanye
  • 2014年06月18日 16:31
  • 5679

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure ...
  • kirawoo
  • kirawoo
  • 2016年05月25日 10:15
  • 2566

myBatis连接MySQL报异常:No operations allowed after connection closed.Connection was i

连接池报错  myBatis连接MySQL报异常:No operations allowed after connection closed.Connection was implici...

selenium错误“[error] modifyWindow: Window was closed!” 解决

操作环境window7 firefox45 seleniumIDE2.9.1问题现象 在打开某个页面执行任何selenese命令log都提示[error] modifyWindow: Window w...

解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT)

解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT) 昨晚,使用 FileZilla ...

ORA-12537: TNS:connection closed错误处理过程

1,同事说oracle测试换了连接不上了,报错如下[oracle@pldb236 admin]$ rlwrap sqlplus powerdesk/pd141118@PD236SQL*Plus: Re...
  • mchdba
  • mchdba
  • 2015年11月24日 21:07
  • 9834

56: Recv failure: Connection was reset和55错误解决办法

在用curl进行模拟调用时,curl接收内容会出现"Empty reply from server" 和 "Recvfailure: Connection was reset"的错误。 开启...

处理phonegap(cordova) application error the connection to the server was unsuccessful的错误

 android 在log中提示TimeOut Error后,应用程序弹出application error the connection to the server was unsucce...

在was控制台重启工程时,zookeeper报以下错误:java.io.IOException:Connection reset by peer

一、问题描述 在was控制台更新war包后,重新启动时,报以下错误: 二、解决方案: 进入zookeeper的以下路径:zookeeper-3.4.6/conf,找到 zoo.cfg...
  • IRhythm
  • IRhythm
  • 2016年11月16日 10:31
  • 2554
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:The underlying connection was closed错误
举报原因:
原因补充:

(最多只允许输入30个字)