错误“基础连接已关闭". [英] Error of "Underlying connection was closed"

查看:99
本文介绍了错误“基础连接已关闭".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我已经使用asp.net 3.5创建了一个控制台应用程序.在这种情况下,我正在访问用户的xml网址并阅读该xml以获得产品供稿.
但是xml网址给出了错误"The underlying connection was closed: The connection was closed unexpectedly."

Hi All,
I have created a console application using asp.net 3.5. In that I am accessing the xml url of the user and reading that xml to get product feeds.
But the xml url gives error of "The underlying connection was closed: The connection was closed unexpectedly."

request = (HttpWebRequest)WebRequest.Create("http://www.futurebazaar.com/atom?name=FutureBazaar&cat=Fashion+Deals");
response1 = (HttpWebResponse)_request.GetResponse();



在这里response1给了我这个错误,并且得到了响应.
请有人给我一些解决方案.



Here response1 gives me this error wen getting response.
Please someone give me some solution to this.

推荐答案

检查
Check this [^].

Try using google first, you wont grow as an exceptional developer if you continue being like this.


这篇关于错误“基础连接已关闭".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆