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 :

Dynamics 365: TLS connection Issue

Santosh bhagat Profile Picture Santosh bhagat 464
In Dynamics 365 after release of version 9.0 we started facing issue while connecting to Dynamics CRM in our console , window etc. application.

You will face below issue.

{"The underlying connection was closed: An unexpected error occurred on a send."}











Solution: -

Reason behind this issue Dynamics 365 version 9.0 following TLS 1.2.
That means you are not able to connect Dynamics 365 until you enforce TLS 1.2 before your connection.

So you need to use below code before creating connection.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;















After adding this code you will able to create connection successfully.

Due to TLS 1.2 our plugin registration tool stopped working for Dynamics 365 9.0 or online trial version. Can need to download new plugin registration tool either from Nuget. or download from below link.
 Plugin Registration 9.0


This was originally posted here.

Comments

*This post is locked for comments