Issue with access to SOAP service RRS feed

  • Question

  • User-1909750782 posted

    Hi all,

    I stucked with a strange issue. When I start my ASP.NET application locally all works fine. When I deploy it to customer's server a strange error occurs when my application calls web service located on another server. Server does not respond some time and after timeout request fails. Do you have any ideas how to get additional information about this issue? It is clear, that it is because of client server's configuration (where my application run), but how to understand where is a problem exactly?

                ServicePointManager.Expect100Continue = true;
                ServicePointManager.SecurityProtocol = (SecurityProtocolType)_securityProtocol; // == Ssl12 (3072)
                // create a container for an HTTP request
                Logger.Log.Info("Establish: Create WebRequest.");
                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(GetLogInURL());
                // username and password are passed as HTTP headers
                req.Headers.Add("UserName", _userName);
                req.Headers.Add("Password", _password);
                // cookie container has to be added to request in order to 
                // retrieve the cookie from the response. 
                req.CookieContainer = new CookieContainer();
                // make the HTTP call
                Logger.Log.Info("Establish: Get response from CRMOD.");
                // !!! this call below hangs and fails after time out
                HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
                if (resp.StatusCode == HttpStatusCode.OK) 

    Temporarly I have administrative access to client's machine, maybe it will be useful to collect additional information. 

    What already did:

    • enabled Sl12 on client's server (initially it was not enabled);
    • ensured that the problem is not firewall;

    Thank you in advance for any idea.

    Tuesday, March 24, 2020 4:35 PM

All replies

  • User-848649084 posted


    Could you please share what error message did you get? which error code logged in the iis log file? 

    Wednesday, March 25, 2020 5:25 AM
  • User-1909750782 posted


    Because my application works as client there are no any records in iis log files about this error.

    Here is piece of my application log:

    2020-03-23 10:56:26,693 INFO --- Request started for user TEUn=XXXXX TEPw=2020-03-23T15:46:45Z TEtok=0a5b7b315eaaf6015e32d1f2590ac30aec948cc1 ----
    2020-03-23 10:56:26,693 INFO Request validated
    2020-03-23 10:56:26,693 INFO GetUsersById: Establish session.
    2020-03-23 10:56:26,693 INFO Establish: Create WebRequest.
    2020-03-23 10:56:26,693 INFO GetLogInURL https://secure-ausomxjoa.crmondemand.com/Services/Integration?command=login
    2020-03-23 10:56:26,693 INFO Establish: Sending response to CRMOD.
    2020-03-23 10:56:47,693 ERROR GetUsersById: Error while get user information: Unable to connect to the remote server

    As you can notice between sending response and error approximately 20 seconds. I don't know where to find any additional information about this issue. 

    Wednesday, March 25, 2020 6:05 AM