I'm getting below error in one of my ASP.NET Web API Project.
Could not load file or assembly 'Microsoft.Rest.ClientRuntime, Version=2.0.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)
I've tried to redirect the assembly bindings like below which didn't work:
<dependentAssembly>
<assemblyIdentity name="Microsoft.Rest.ClientRuntime" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
Also, properties for given dll reflects the correct information:
I have checked the public key of the dll using "sn.exe" which is exactly same to what is showing in the error.
I have tried following other steps as well:
- Cleaning up the project > building again
- Restart Visual Studio
- Restart Machine
- Checking the bin folder for given dll (Yes, it exists!)
Nothing of the above has worked so far. Please share your thoughts if anybody has had the same issue ever.
I appreciate any help!