We are getting below error while executing the plugin.
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Could not load file or assembly ‘Microsoft.Identity.Client, Version=4.61.1.0, Culture=neutral, PublicKeyToken=’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (Fault Detail is equal to Exception details:
ErrorCode: 0x80040224
Message: Could not load file or assembly ‘Microsoft.Identity.Client, Version=4.61.1.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
OriginalException: PluginExecution
ExceptionSource: PluginExecution
—
).
This was worked fine so far. But suddenly this is failing in all D365 instances. We have tried upgrading and Downgrading the version. But nothing works. Plugin run on .Net v4.6.2