Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM 2016 Authentication using Xrm.Tooling.Connector

Posted on by 810

I am trying to connect CRM using Microsoft.Xrm.Tooling.Connector below is my code. it failed on first step only. 

I am trying to connect on-prem version of CRM 2016 

CrmServiceClient CrmSvc = new CrmServiceClient("AuthType=AD;Url=https://<<ServerName>>/<<ORG_Name>>; Domain=<<Domain>>; Username=<<username>>; Password=<<password>>");

Above code throw below error message.

{"Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.":"Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}

I have already Microsoft (windows identity foundation) installed
https://www.microsoft.com/en-us/download/details.aspx?id=17331

*This post is locked for comments

  • Suggested answer
    Dhaval mistry Profile Picture
    Dhaval mistry 810 on at
    RE: CRM 2016 Authentication using Xrm.Tooling.Connector

    I have found DLL in 2016 SDK

    Microsoft.IdentityModel.Clients.ActiveDirectory.dll

    Microsoft.Xrm.Sdk.Deployment.dll

    Both DLL you need to add in project to use Xrm.Tooling.Connector

  • Verified answer
    Dhaval mistry Profile Picture
    Dhaval mistry 810 on at
    RE: CRM 2016 Authentication using Xrm.Tooling.Connector

    I have found below two DLL in 2016 SDK

    Microsoft.IdentityModel.Clients.ActiveDirectory.dll

    Microsoft.Xrm.Sdk.Deployment.dll

    Above both DLL you need to use Xrm.Tooling.Connector.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans