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: 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 ...

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
  • 4895

解决"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”...

C#中用HttpWebRequest中发送GET/HTTP/HTTPS请求

C# HttpWebRequest GET HTTP HTTPS 请求  作者:周公(zhoufoxcn)    原文:http://blog.csdn.net/zhoufoxcn 这个需求来自于我...

The underlying connection was closed错误

今天理IIS上Asp.net程序的所有报错日志,发现好报The underlying connection was closed: Unable to connect to the remote se...

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
  • 7858

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

在用curl进行模拟调用时,curl接收内容会出现"Empty reply from server" 和 "Recvfailure: Connection was reset"的错误。 开启...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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