2
votes

I have asp.net core project which runs on Asp.Net Core V2.1.0 which has signal r integrated. I have downloaded a sample project from aspnetbrolerplate. When I try to run the application it gives me following error.

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Memory, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.'

Can anyone please suggest me possible solution for this issue.

2
anything related to this issue reported here developercommunity.visualstudio.com/content/problem/252454/… - Fuzzybear
@Fuzzybear I'm running Visual studio 2017 V15.7.4 and have xamrin installed. According to the link provided it says that it should be fixed in V15.7.3 but I don't think it;s fixed. - ISHIDA

2 Answers

3
votes

I found installing the System.Memory NuGet package resolves the issue.

It is confusing that earliest version is 4.5.1, but if you install it, you will find the assembly versioned a System.Memory, Version=4.1.0.0.

For my .NET Framework project I installed NuGet version 4.5.4 which contains System.Memory, Version=4.0.1.1 assembly.

1
votes

I found that this is a known issue for UWP. Update to Asp.Net Core 2.1.1 and Microsoft.AspNetCore.SignalR.Client NuGet Package to at least 1.0.1, which has a fix for this UWP issue.

Maybe it also fixes your issue.