underlying connection was closed:unable to connect to remote server

hi,

webservices installed on windows 2003 is trying to access another server behind firewall.

And getting this system.net exception.


please let me know whts the fix for this.

 

thanks

gouda

 

 



Answer this question

underlying connection was closed:unable to connect to remote server

  • JMCD73

    Thanks Mike.

    version im using is V1.1.

     


  • Evan2

    The Tracing is not available in 1.1.
    This error happens under a variery of circumstances.

    One thing you could do is to use Ethereal or Netmon to capture the network traffic.

    See my blogs to get an understand of how to install and get a network monitor trace
    can be obtained



  • ruiefree

    hi,

    lwebservices do a httppost to server and i got this exception.

    plz let me know how to fix this.

    thanks

    gouda


  • Parikshit A. Bhinde

    I have been receiving this exception for over a week with a .NET remoting app and can't find a solution anywhere that works. Below I'll paste my config files and the client code calling the remote method. I'd really appreciate some assistance. The Server code and files are on a remote server within our facility and have been told more than once there is no firewall between my workstation and it. So firewalls are out of the question as the source of the problem. I assume its somewhere in my config files but I've tried everything I've seen on the net.

    I receive the Net.WebException: underlying connection was closed:unable to connect to remote server exception message.

    Any thoughts

  • emirac

    This error can be caused by a number of different things.  The most common cause of this error is the server prematurely closing/resetting a connection.  I suggest debugging this by using the System.Net 2.0 logging feature if you are using V2.0 of the framework.  Instructions for how to do this can be found here:

    http://blogs.msdn.com/dgorti/archive/2005/09/18/471003.aspx

    Please post back if you have further questions after looking at your logs. 



  • xizzy44

    Maybe firewall doesn't permit packets from your network, or forbids connection to the port you're trying to access. BTW what port you're trying to use

    Can you specify the Exception text or perhaps InnerException

     


  • underlying connection was closed:unable to connect to remote server