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
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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156