System.Memory.dll is not loading and throwing an error

-1

System.Memory.dll is not loading and throwing an error "Could not load file or assembly 'file:///D:\inetpub\wwwroot\test-site\bin\System.Memory.dll' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040). ".

targetFramework="4.7.1"

The web.config has this redirect as well,

    <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />

    <bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />

  </dependentAssembly>

dll properties image

The nuget package auto generated redirect shows the above binding redirect and I tried the below binding as well,** See the picture and dll properties shows 4.6.26606.5

<dependentAssembly>
    <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.6.2.5" newVersion="4.6.2.5" />
  </dependentAssembly>
c#
.net
asp.net-mvc
asked on Stack Overflow May 11, 2021 by SCDev • edited May 12, 2021 by SCDev

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0