Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > The underlying connection was closed: Unable to connect to the remote server

Reply
Thread Tools

The underlying connection was closed: Unable to connect to the remote server

 
 
Ilya
Guest
Posts: n/a
 
      09-15-2003
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(IAsyncRes ult 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
underlying connection was closed: unable to connect to the remote server: COM --> .Net --> WebService --> Error Monty ASP .Net 3 09-28-2006 11:05 PM
The underlying connection was closed: Unable to connect to the remote server Marisha ASP .Net 0 03-27-2006 10:11 PM
webservice problem: The underlying connection was closed: Unable to connect to the remote server Frasse ASP .Net Web Services 3 02-13-2004 12:26 PM
The underlying connection was closed: Unable to connect to the remote server. David Jeff ASP .Net Web Services 1 01-02-2004 04:04 PM
The underlying connection was closed: Unable to connect to the remote server Tom McDonald ASP .Net Web Services 1 12-20-2003 12:59 PM



Advertisments