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

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

Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.14.0.0, 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

Comments

Popular Posts