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.
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.
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