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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

CrmServiceClient connection stopped to work suddenly on June 1, 2021

(0) ShareShare
ReportReport
Posted on by 20

Hi,

On June 1, 2021 we started to have problems connecting to CRM from our custom applications. The issue started to occur in all environments at the same time. Nothing was changed from our side

For the connection we use 

CrmServiceClient passing as a parameter connection string

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

_crmServiceClient = new CrmServiceClient(ConfigurationManager.ConnectionStrings["Crm"].ConnectionString);

if (!_crmServiceClient.IsReady)
{
    throw new CrmConnectivityException("Can't connect to Crm", _crmServiceClient.LastCrmException);
}

connection string 

Url=test.crm3.dynamics.com; Username=test; Password=test; authtype=Office365

looks like microsoft did some changes to the online platform.

This is production issue, so, any help is appreciated. 

Thanks,

Maksym

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hello Max,

    This is related to the depreciation of the WS-TRUST authentication protocol: docs.microsoft.com/.../important-changes-coming

    Effective October 2020, the authentication protocol will be retired for all new tenants.

    Effective October 2020, the authentication protocol will not be available in all new regions.

    Effective April 2021, the authentication protocol will be retired for all new environments within a tenant. The retirement of new environments starts April 1st, 2021 and rolls out gradually in all regions within a 6-week window.

    Effective April 2022, the authentication protocol will be retired for all new and existing environments within a tenant.

    You can resolve your issue by following the steps described in the docs: docs.microsoft.com/.../authenticate-office365-deprecation

    Please refer to my sample code:

    gist.github.com/.../77f718d9a5802d4d087722d9e6a61d0a

    Also, check this blog for more details: brianilland.me/.../

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hello Max,

    This is related to the depreciation of the WS-TRUST authentication protocol: docs.microsoft.com/.../important-changes-coming

    Effective October 2020, the authentication protocol will be retired for all new tenants.

    Effective October 2020, the authentication protocol will not be available in all new regions.

    Effective April 2021, the authentication protocol will be retired for all new environments within a tenant. The retirement of new environments starts April 1st, 2021 and rolls out gradually in all regions within a 6-week window.

    Effective April 2022, the authentication protocol will be retired for all new and existing environments within a tenant.

    You can resolve your issue by following the steps described in the docs: docs.microsoft.com/.../authenticate-office365-deprecation

    Please refer to my sample code:

    gist.github.com/.../77f718d9a5802d4d087722d9e6a61d0a

    Also, check this blog for more details: brianilland.me/.../

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Any chance 2FactAuth was enabled for the user you use to connect to Dataverse?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
ManoVerse Profile Picture

ManoVerse 127 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans