Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

What happens if I don't use TLS12 to get organizational services for dynamics crm 9.0

Posted on by 365

Hi Guys,

I'm using the code below to get organization service, it can get service, but now it sometimes show "System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server." when I invoke this service. I'm not sure if it's because I didn't explicitly use TLS1.2(ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ).

I'm using Dynamics crm 9.0 on-premise version.

Thanks,

Dejun

  • Stone Huang Profile Picture
    Stone Huang 365 on at
    RE: What happens if I don't use TLS12 to get organizational services for dynamics crm 9.0

                       System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

                       _service = (IOrganizationService)new OrganizationServiceProxy(new Uri(ConfigurationManager.AppSettings["CRMUrl"]),

                           null, _clientCredentials, null);

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans