web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Connecting to CRM service timeout occasionally

(0) ShareShare
ReportReport
Posted on by 455

Hi Guys,

I have occasionally timed out when I use my web client to connect to CRM these days, which I have never done before. I'm not sure if there's something wrong with my server or the official CRM service.

To be honest, I think it's almost impossible that there is a problem with CRM's official service, so I think the problem should be with me. But I haven't touched the code in this period of time, and so is the setting of the server.  So I'm really confused right now. It's not always out of touch, but it happens occasionally.

I just looked at the event viewer and found that the location of the error was different, but the reason for the error was due to timeout, and I saw that there were basically the following words in the description.

881.png

882.png

883.png

IP address above is not the IP address of our server. I don't know it. I very much doubt whether the server made any changes during system updates, such as timeouts.

I have the same question (0)
  • Stone Huang Profile Picture
    455 on at
    RE: Connecting to CRM service timeout occasionally

    Exception Details:  System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 157.58.197.16:443

    Stack Trace:

    [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 157.58.197.16:443]
       System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +244
       System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) +702
    
    [WebException: Unable to connect to the remote server]
       System.Net.HttpWebRequest.GetResponse() +1686
       System.ServiceModel.Description.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) +127
       System.ServiceModel.Description.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) +64
    
    [InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://msft.sts.microsoft.com/adfs/services/trust/mex'.]
       System.ServiceModel.Description.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) +357
       System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState) +179
       System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever) +147
       Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveIssuerEndpoints(EndpointAddress issuerMetadataAddress) +109
       Microsoft.Xrm.Sdk.Client.CrossRealmIssuerEndpointCollection.get_Item(Uri key) +130
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateWithADFSForOrgId(AuthenticationCredentials authenticationCredentials, Uri identifier) +246
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateOnlineFederationInternal(AuthenticationCredentials authenticationCredentials) +642
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(AuthenticationCredentials authenticationCredentials) +111
       MSCRM.Common.VMSCommon.GetOrganizationProxy() +543
       MSCRM.WebApplication.Index.Page_Load(Object sender, EventArgs e) +217
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnLoad(EventArgs e) +106
       System.Web.UI.Control.LoadRecursive() +68
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 247

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 166 Super User 2025 Season 2

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 164

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans