Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Could not load file or assembly 'Newtonsoft.Json, Version=9. #3565


User avatar
0
krileo created

Hi.

Using the latest ASP.NET Core / Angular template and following the step by step guide we get this when we are trying to add a migration. We used the migrator to setup the database originally, and that worked just fine. Running Database-Update gives the exact same issue.

PM> Add-Migration "Added_Core_Entities" System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

How do we resolve this? There is an old related post, but its unclear exactly what to do.

Regards

Kristian


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @krileo,

    Can you check this issue this <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/172">https://github.com/aspnetzero/aspnet-ze ... issues/172</a>.

    Thanks.