+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Error with assemblies after upgrade from 7.0 to 7.1

Error with assemblies after upgrade from 7.0 to 7.1

2 posts, 0 answered
  1. Glen
    Glen avatar
    3 posts
    Registered:
    28 May 2014
    16 Sep 2014
    Link to this post

    We are trying to upgrade our 7.0 site to 7.1. The project upgrades successfully according to Sitefinity Project Manager 7.1.5200.0, however when we go run the project, it shows an error. The weird thing is we've tried to update different instances of our app, and the error is different each time.

    Sometimes the error is "Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. " and sometimes it's "Could not load file or assembly 'System.Net.Http' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. 

     We have brought NuGet packages into the solution for the Web API and for Newtonsoft, but I'm surprised this upgrade is having trouble with that.

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    19 Sep 2014
    Link to this post
    Hello Glen,

    It is possible that a components in your solution is looking for a different dll version (in your case Newtonsoft.Json), and this can be easily solved as described in this blog post: Avoid Version errors with Assembly Binding.

    It is needed to add the assembly name, token and specify the new version number of the assembly to be used.

    Hope this helps.

    Regards,
    Vassil Vassilev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered