Skip to main content

Notifications

Announcements

No record found.

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

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: CrmServiceClient connection stopped to work suddenly on June 1, 2021

    Hello,

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

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: CrmServiceClient connection stopped to work suddenly on June 1, 2021

    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,216 User Group Leader on at
    RE: CrmServiceClient connection stopped to work suddenly on June 1, 2021

    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/.../

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans