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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.