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 :
Microsoft Dynamics CRM (Archived)

D365 - 9.0 - An existing connection was forcibly closed by the remote host

(0) ShareShare
ReportReport
Posted on by 65

Hi Guys,

since today we are getting the exception "An existing connection was forcibly closed by the remote host" for different projects and Microsoft portals. We have seen that the problem is related only to CRM 9.0

We have updated the SDK  Version ( now we are using the 9 ) but nothing has changed. We are working with D365 Version 1612 (9.0.0.3172) (DB 9.0.0.3172) online.

Has someone get the same error ?

Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Rickard Norström Profile Picture
    on at

    I'm getting a similar error when I try to use the OData endpoint of a Dynamics 365 Customer Engagement Enterprise Edition as of January 2 at 21.30 UTC+1. That's the inner exception of the inner exception of the inner exception (I think). The more outer exception is "one or more errors has occurred" and on a slightly higher level it says that {"The underlying connection was closed: An unexpected error occurred on a send."} and "An error occurred while sending the request".

    This is mighty annoying since it's an integration for one of our customers and it was running between Dec 22 and Jan 2 slightly earlier than half past 9 in the evening UTC+1.

  • Rickard Norström Profile Picture
    on at

    Hi again,

    If you're doing this by code you're probably not using TLS 1.2 as described in this article blogs.msdn.microsoft.com/.../updates-coming-to-dynamics-365-customer-engagement-connection-security

    It didn't work for me by just moving to .NET 4.6.2, I had to add the line "System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;" in my code before I did any calls to Dyn 365.

    Hope that helps you!

  • Alduzzen1985 Profile Picture
    65 on at

    Hi Rickard,

    I was expecting the change in March and not in January ( https://blogs.msdn.microsoft.com/crm/2017/09/28/updates-coming-to-dynamics-365-customer-engagement-connection-security/  ) . What I did to solve the problem is very simple, I've updated all SDK dlls to last version (9.0) and I've recompiled the projects with the .NET framework 4.6.2. 

    About the all my Microsoft Portal projects to avoid to change the .NET framework, I've added in the OrganizationService.cs class and Method

    protected virtual IServiceConfiguration<IOrganizationService> CreateServiceConfiguration(CrmConnection connection)

    the follow line :

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


    Now everything is working correctly.

    Tack så mycket Rickard

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans