5

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.

CodeNotFound
  • 22,153
  • 10
  • 68
  • 69
ISHIDA
  • 4,700
  • 2
  • 16
  • 30
  • 1
    anything related to this issue reported here https://developercommunity.visualstudio.com/content/problem/252454/systemiofilenotfoundexception-could-not-load-assem.html – Fuzzybear Jul 10 '18 at 15:21
  • @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 Jul 10 '18 at 15:45

2 Answers2

8

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.

benhorgen
  • 1,928
  • 1
  • 33
  • 38
michelle4code
  • 81
  • 1
  • 3
3

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.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127