Could not load file or assembly 'System.Buffers, Version=4.0.2.0…'

后端 未结 1 1500
隐瞒了意图╮
隐瞒了意图╮ 2021-01-19 02:48

I\'m getting the following exception when trying to call GetDatabase method of the MongoClient class after adding a new configuration using VS conf

相关标签:
1条回答
  • 2021-01-19 03:39

    Could not load file or assembly 'System.Buffers, Version=4.0.2.0…'

    Solution

    1) use CMD(run as Administrator ) and type

     cd xxxx(xxxx\packages\System.Buffers.4.5.1\lib\netstandard2.0))
    

    run

    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=4.0.2.0 to Version=4.0.3.0 in csproj file.

    Besides, there is a similar issue you can refer to.

    0 讨论(0)
提交回复
热议问题