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

Discussion in 'ASP .Net Web Services' started by Ilya, Sep 15, 2003.

  1. Ilya

    Ilya Guest

    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.
     
    Ilya, Sep 15, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marisha
    Replies:
    0
    Views:
    1,238
    Marisha
    Mar 27, 2006
  2. Monty
    Replies:
    3
    Views:
    4,135
    Monty
    Sep 29, 2006
  3. Tom McDonald
    Replies:
    1
    Views:
    186
    Tom McDonald
    Dec 20, 2003
  4. David Jeff
    Replies:
    1
    Views:
    290
    Jan Tielens
    Jan 2, 2004
  5. Frasse
    Replies:
    3
    Views:
    284
    Jan Tielens
    Feb 13, 2004
Loading...

Share This Page