I have a problem with the Nuget package Microsoft.Azure.ActiveDirectory.GraphClient.
From Nuget Package Manager, I have added Version 2.1.0 of said Nuget package to my project, but it seems the DLL cannot be found:
FileNotFoundException: Could not load file or assembly "Microsoft.Azure.ActiveDirectory.GraphClient, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" or one of its dependencies. The system cannot find the file specified.
I have checked that the DLL does exist, and found that it is "File Version 1.0.9342.13", "Product Version 1.0.9342.13".
So I tried to add the file to the assemblyBinding
in Web.config (although I'd expect VS to do that for me):
<dependentAssembly>
<assemblyIdentity name="Microsoft.Azure.ActiveDirectory.GraphClient" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.1.1.0" newVersion="1.0.9342.13"/>
</dependentAssembly>
but this didn't work.
Why is there a discrepancy in versions and what do I have to do so my program finds the DLL and the dependent assemblies?