none
Error : "Unable to connect remote server" web service RRS feed

  • Question

  • Hi

    Some times my Windows application can not able to connect web service in production environment but i can connect through browser. Kindly need your help

    Detailed exception : 

    Unable to connect to the remote server----->   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    Thanks in Advance!!

    Monday, February 24, 2020 6:13 AM

Answers

  • Hi,

    You might need to install an SSL certificate on the client-side before calling the remote service. This is due to that Https communication requires that the remote server is trusted. We need to determine whether the server is the expected one. If the certificate is a self-signed certificate, not purchased from others, we need to install the server certificate on the client-side so as to validate the server. If it is purchased, the root certificate of that is usually on-built in OS/Browser. namely we needn't.
    Best Regards
    Abraham

    • Marked as answer by Pradeep NJ Monday, March 2, 2020 3:56 AM
    Thursday, February 27, 2020 5:08 AM
    Moderator

All replies

  • Well you need more than that, like the StackTrace and the inner.exception.message if available 

    Also, you can post to the forum in ASP.NET forums.

    http://forums.asp.net/

    https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services

    Monday, February 24, 2020 7:24 AM
  • I don't find any inner exception. Also checked with no proxy but it didn't help me.

    Thanks!!

    Regards,

    Pradeep

    • Edited by Pradeep NJ Monday, February 24, 2020 7:30 AM
    Monday, February 24, 2020 7:26 AM
  • Hi 

    can you please help me to know, whether do we need to install SSl certificate to connect web service from the Desktop application if web service is from https?

    Thanks in advance


    • Edited by Pradeep NJ Wednesday, February 26, 2020 8:08 AM
    Wednesday, February 26, 2020 7:36 AM
  • Hi,

    You might need to install an SSL certificate on the client-side before calling the remote service. This is due to that Https communication requires that the remote server is trusted. We need to determine whether the server is the expected one. If the certificate is a self-signed certificate, not purchased from others, we need to install the server certificate on the client-side so as to validate the server. If it is purchased, the root certificate of that is usually on-built in OS/Browser. namely we needn't.
    Best Regards
    Abraham

    • Marked as answer by Pradeep NJ Monday, March 2, 2020 3:56 AM
    Thursday, February 27, 2020 5:08 AM
    Moderator
  • Thanks Abraham!!. 

    • Edited by Pradeep NJ Monday, March 2, 2020 8:31 AM
    Monday, March 2, 2020 3:57 AM