Able to get Bearer token etc.
Now when I try to call the CRM Web service using HTTPClient Get Async, I get this error:
*This post is locked for comments
Able to get Bearer token etc.
Now when I try to call the CRM Web service using HTTPClient Get Async, I get this error:
*This post is locked for comments
Hello Jeetus,
This is an issue you will get when not performing the request on TLS 1.2
Microsoft announced last year it would start making it manditory to use TLS 1.2 when consuming the Dynamics 365 API and resources on version 9 organizations (Article in question: https://blogs.msdn.microsoft.com/crm/2017/09/28/updates-coming-to-dynamics-365-customer-engagement-connection-security/ ) Messages about this have also been appearing over the last few weeks in the Office 365 message center.
On to solutions:
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
Hope my answer helps you out, if you have any other questions, let me know.
If you found my answer useful, please mark it as such/verified :-)
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6