Skip to main content

Notifications

Announcements

No record found.

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?

  • Suggested answer
    Gilmeyer Profile Picture
    on at
    RE: An error occurred while making the HTTP request

    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. 

  • George_Smith Profile Picture
    15 on at
    RE: An error occurred while making the HTTP request

    Hi,

    Yes.

  • Suggested answer
    Gilmeyer Profile Picture
    on at
    RE: An error occurred while making the HTTP request

    Hi ,

    Are you using the latest version of D365 SDK?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans