Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory

6:14 AM 0 Comments

If you are getting the following error with CRM Dynamics 2016 SDK

Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Ensure you have Identity Model enabled in Windows Features and add the reference Microsoft.IdentityModel.Clients.ActiveDirectory to your projects. It is found under /bin directory in the SDK


Thank you for your comments