web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

An error occurred while making the HTTP request

(0) ShareShare
ReportReport
Posted on by 15

I have a console application that updates data in crm and it works well in most cases. But yesterday I got the error:

An error occurred while making the HTTP request to https://****.crm.dynamics.com/XRMServices/2011/Organization.svc/web?SdkClientVersion=9.0.0.0. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

I`m using framework 4.7.2 and I have "ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12" above my connection.

Dynamics 365 Online version 9.1.0000.22251

Any suggestions?

I have the same question (0)
  • Suggested answer
    Gilmeyer Profile Picture
    Microsoft Employee on at

    Hi ,

    Are you using the latest version of D365 SDK?

  • George_Smith Profile Picture
    15 on at

    Hi,

    Yes.

  • Suggested answer
    Gilmeyer Profile Picture
    Microsoft Employee on at

    Hi,

    As per support.microsoft.com/.../4051700

    "For code built with the Dynamics 365 SDK

    Recompile your client applications using .NET framework 4.6.2 or higher.  If your code is already compiled with .net 4.6.2 or higher, then there is no action required."

    One important note for .NET based apps

    You can force TLS 1.2 protocol using the following command :

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 

    This forces the TLS 1.2 security protocol at all time.  This is not recommended as you run the risk of having to update this when there is a newer security protocol adopted by the industry. 

     

    Can you please remove the force TLS 1.2 as you are already on correct version of .NET Framework. Let me know if it still occurring. 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans