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

Announcements

No record found.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans