Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Connecting to CRM service timeout occasionally

Posted on by 384

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.

  • Stone Huang Profile Picture
    Stone Huang 384 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans