The underlying connection was closed错误
来源:互联网 发布:mac的应用程序 编辑:程序博客网 时间:2024/05/21 10:11
今天理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
0 0
- The underlying connection was closed错误
- The underlying connection was closed错误
- Bug record1: The underlying connection was closed: The connection was closed unexpectedly.Then
- 解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"
- 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
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- HttpWebRequest:基础连接已关闭异常:The underlying connection was closed。
- java.sql.SQLException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exceptio
- No operations allowed after connection closed.Connection was implicitly closed by the driver
- struts+Spring+Hibernate中(the owning Session was closed错误)
- 出现Invalid operation. The connection is closed.这种错误
- 应用启动时发生“The network connection was lost.”错误
- The network connection was lost 文件下载错误提示
- Qtcpsocket The remote host closed the connection
- Spring+Hibernate中(the owning Session was closed错误)的详细解决过程
- Hibernate could not initialize proxy - the owning Session was closed 错误 :解决办法
- VirtualBOX启动错误the vm session was closed before any attempt to power it on解决办法
- 文件的具体操作,fopen在不同场景的参数设置
- PHP 查询MySql int类型返回string
- Huffman树及其应用
- ExtJS使用时的一个注意事项
- USBPCAP工具介绍
- The underlying connection was closed错误
- layer-list简单使用教程
- 我的第一个安卓工程:云计算环境下基于安卓的任务执行系统 (3)完成界面
- Android NDK开发之Hello-JNI!
- 应用之星:H5制作又出一利器,分分钟刷爆朋友圈
- 详解android 接口回调
- K-近邻法(K-NN)
- Android导致内存泄漏的几种情形
- JS正则方法判断邮箱号码,手机号码,电话号码