"The underlying connection was closed" error on .Net 1.1

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

These code generates the error:

WebRequest request = WebRequest.Create("http://www.yahoo.com");
WebResponse response = request.GetResponse();

Here is the stack trace for the error:

WebException: The underlying connection was closed: Unable to connect to the
remote server.]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +140
System.Net.HttpWebRequest.GetResponse() +147
ASP.WebRequest_aspx.Page_Load(Object sender, EventArgs e) in


This worked fine on .Net 1.0 but stopped working when upgraded to .Net 1.1 .

Any help on this will be greatly appreciated.

thanks.
 
Hi, Dave

I've escalated your request to a specialist. If you do not receive a
response by close of business on Wednesday, please post here again and I
will expedite.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
"Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security."
--------------------
| From: "Dave" <[email protected]>
| Subject: "The underlying connection was closed" error on .Net 1.1
| Date: Mon, 15 Sep 2003 15:02:30 -0400
| Lines: 22
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: 24-168-36-252.si.rr.com 24.168.36.252
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.general:108281
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| These code generates the error:
|
| WebRequest request = WebRequest.Create("http://www.yahoo.com");
| WebResponse response = request.GetResponse();
|
| Here is the stack trace for the error:
|
| WebException: The underlying connection was closed: Unable to connect to
the
| remote server.]
| System.Net.HttpWebRequest.CheckFinalStatus() +673
| System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +140
| System.Net.HttpWebRequest.GetResponse() +147
| ASP.WebRequest_aspx.Page_Load(Object sender, EventArgs e) in
|
|
| This worked fine on .Net 1.0 but stopped working when upgraded to .Net
1.1 .
|
| Any help on this will be greatly appreciated.
|
| thanks.
|
|
|
 
Hi Dave,

We may be getting the problem as in 815209 BUG: "The Operation Has
Timed-Out." Error Message May Occur When You Add a Web Service
Reference.http://support.microsoft.com/?id=815209

The article is written for a webservice, but the cause may be the same in
your issue. Please check if you can remove any of the unused connections or
unused protocols in each connection, from Control Panel -- Network and
Dialup Connections.

Hope that helps,
Engels Rajangam
Microsoft Developer Support - Internet

Please do not send email directly to this alias. This is our online account
name for newsgroup participation only.

This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
 
Back
Top