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;
No comments:
Post a Comment