web
You’re offline. This is a read only version of the page.
close
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?

I have the same question (0)
  • Suggested answer
    Gilmeyer Profile Picture
    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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans