Could not load file or assembly 'System.Memory, Version=4.0.1.1,

1

I am trying to use Azure Blob Storage, however I am getting the following error.

System.IO.FileLoadException: 'Could not load file or assembly 'System.Memory, Version=4.0.1.1, 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 have viewed other solutions on Stackoverflow that suggest changing from "Any CPU" to "x64", Doing a clean then build, and making the app.config match the version in the packages.config. None of these things solve the problem.

I am using Visual Studio 2019 and .NET Framework 4.7.2

The offending line of code is

BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString);

Can anyone provide some insight on why this is happening?

c#
visual-studio-2019
asked on Stack Overflow Jan 8, 2021 by Dave

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0