Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 277 posts 389 karma points
    Jul 26, 2016 @ 15:10
    Graham Carr
    0

    Newtonsoft.Json version issue

    I have just installed TeaCommerce V3.1.1 onto a copy of Umbraco 7.3.4 and am running into an issue when I try to expand my store node in that it gives the following message.

    If I try to copy V8 of Newtonsoft into the bin folder, the website then breaks as Umbraco 7.3.4 (the official latest release) is expecting V6 of Newtonsoft.

    Do you have any idea how I can get around this issue??

    Could not load file or assembly 'Newtonsoft.Json, Version=8.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) EXCEPTION DETAILS System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=8.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)

  • Rune Grønkjær 1297 posts 2874 karma points
    Jul 27, 2016 @ 06:45
    Rune Grønkjær
    1

    Hi Graham,

    There's a note on that problem in the Tea Commerce revision history: https://documentation.teacommerce.net/revision-history/

    It's under 3.1 Install notes

    /Rune

  • MarcC 49 posts 352 karma points
    Jul 27, 2016 @ 07:56
    MarcC
    1

    You can get round this issue by adding the new dll into the build folder and editing the web config assembly for the dll to fall back on the new version.

    I had to do something similar with NEST for elastic search which uses version 9, so i removed the old dll, added in the new one and built the project.

    You may need to check nuget isnt trying to override it by editting the package.config to pull in the right version too.

    <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="9.0.0.0" /> </dependentAssembly>

    Hope it helps!

  • Pedro Almeida 4 posts 72 karma points
    Jul 29, 2016 @ 11:15
    Pedro Almeida
    0

    I had the same issue and I solve it this way :

    1. Install-Package UmbracoCms -Version 7.4.3
    2. Install-Package Newtonsoft.Json -Version 8.0.3 (its important to install this version because umbraco 7.4.3 doesn't support version greater than 8)
    3. Then install Teacommerce Package
Please Sign in or register to post replies

Write your reply to:

Draft