Thursday, 23 May 2019
Friday, 3 May 2019
MSCRM Metadata contains a reference that cannot be resolved
Error:
Metadata contains a reference that cannot be resolved: 'https://crmservice/instance/XRMServices/2011/Organization.svc?wsdl&sdkversion=7.1'.","System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)"
Solution:
Add below line before executing the CRM Org service:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Subscribe to:
Comments (Atom)