The underlying connection was closed: Unable to connect to the remote server. (Could not find the an

Discussion in 'ASP .Net Web Services' started by Christina, May 5, 2006.

  1. Christina

    Christina Guest

    Hello All,
    Sorry for posting this question. I tried a lot to look for an answer to
    all the links with the same topic, but couldnt find one.

    I am using ASP.NET (VB.NET) .
    I have created a client in my local to access methods of a web service
    residing in another server. And it gives me the error message:

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

    I read about proxy settings, but has no clue how to do that...
    Any links would also be appreciated.

    TIA,
    Chris
     
    Christina, May 5, 2006
    #1
    1. Advertisements

  2. Christina

    Christina Guest

    Is there anyone who can help me with this.??
    I am getting frustrated with this problem.

    I added few lines of code in web.config:
    <system.net>
    <defaultProxy>
    <proxy
    usesystemdefault = "false"
    bypassonlocal="false"
    proxyaddress="http://address:port"/>
    </defaultProxy>
    </system.net>

    The error changed to:
    "The request failed with HTTP status 404: Not Found. "

    Please help!! Is it the security ?

    Thanks
    Cris
     
    Christina, May 9, 2006
    #2
    1. Advertisements

  3. Christina

    Christina Guest

    I am trying to do an HTTP post to a remote server.. I guess its the
    firewall and proxy issue.
    Thanks!!
     
    Christina, May 17, 2006
    #3
  4. Christina

    Consultant Guest

    Consultant, May 22, 2006
    #4
    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.