I'm getting the following exception when trying to call
GetDatabase method of the
MongoClient class after adding a new configuration using VS config. manager:
Could not load file or assembly 'System.Buffers, Version=220.127.116.11, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I installed the latest System.Buffer nuget package v4.5.1, created dependentAssembly in my app.config and Reference in my .csproj file, but I still have the same issue. For some reason it tries to reference System.Buffer with v4.0.2. Has anyone had a similar error and how did you solve it?
Could not load file or assembly 'System.Buffers, Version=18.104.22.168…'
1) use CMD(run as Administrator ) and type
gacutil /i System.Buffers.dll
Then, when you finish it, please run
update-package -reinstall under
package manager console to reinstall the package.
2) you can try to change
Version=22.214.171.124 in csproj file.
Besides, there is a similar issue you can refer to.
User contributions licensed under CC BY-SA 3.0