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

Community site session details

Session Id :
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 455

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

I have the same question (0)
  • Stone Huang Profile Picture
    455 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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 107 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

#3
#ManoVerse Profile Picture

#ManoVerse 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans