Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 388

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 388 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans