Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Trying to update site with nuget package for 7.6.3


I have a sample site installed that is currently using version 7.5.394.2 of the episerver.dll. The site has Newtonsoft.Json 6.0.1 installed and the nuget package for episerver.core 7.6.3 states that it wants Newtonsoft.Json < 6.0.

Is there any breaking changes in the Newtonsoft.Json 6.0.1 package that makes it impossible to use with episerver 7,6,3?

Mar 24, 2014 19:10

With few hacks you are able to use >6.0 Json.Net in 7.6.3 installation. I'm not aware of huge breaking changes above 6.0 in library (some obsoletes have been removed).

All >= 7.5 versions of Framework are targeting Json.Net between 5.0 and 6.0. I suppose that this is done because of "securing" package compatibility - code has been tested with those libraries and upgrade is clearly marked as - "on your own risk".

Mar 24, 2014 20:18

Valdis, how did you get this to work, what hacks did you do?

May 28, 2014 9:55

Hack is pretty easy (but not forward compatible - as you would need to do the same stuff once again after upgrade of EPiServer.Framework package).

Open packages/EPiServer.Framework.7.5.1003.0/EPiServer.Framework.7.5.1003.0.nupkg with NuGet Package Explorer. Edit meta-data to remove upper version constraint for Json dependency:

<dependency id="Newtonsoft.Json" version="5.0.8" />

After .nupkg file save, do the same for .nuspec file in the same dir.

Then upgrade Json to newer version (at the moment fo writing - 6.0.3).

Verify correct assembly bindings (web.config):

  <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  <bindingRedirect oldVersion="" newVersion="" />
May 28, 2014 10:23

Thanks Valdis.
I ended up downgrading newtonsoft.json since it was only webgrease that used it and it did not need 6.0
I would be nice if EPiServer could upgrade to 6 

May 28, 2014 11:40

Just to bump to topic, could the EPiServer packages at least be changed to allow higher versions of Json.NET so in stead of using (5,6] use (5,7] in the nuspec to allow version 5 and 6 excluding version 7 for now.

this would fix a bunch of issues with installing other packages that are 6 or later compatible.

Sep 05, 2014 19:32

I second that ^

Sep 15, 2014 12:37

Do I open the package from EPiServer Nuget Source or locally? 
How do I update EPiServer Framwork (to current 7.13.3) after saving the .nuget file?  I cannot find a .nuspec file in the folder

Thanks in advance.

Sep 16, 2014 12:52

I used Nuget Package Explorer to update the zip. we have a local nuget feed where the packages are moved.

But you could also setup a local folder as a feed or have the package in source control.

Sep 16, 2014 13:29

Thanks Thomas.

I followed the instructions in thread  and got it to work.

Sep 16, 2014 13:33

NPE is the tool. I do not use NuGet restore so I just modify my local copy of package files in packages/ folder.

Sep 16, 2014 13:50


EPiServer has done a regression test of newtonsoft.Json 6. Though most of the products and add-ons seem to work fine, there are two issues found that needs to be resolved before we can update our dependencies. For you that want to upgrade anyway I can mention that the affected areas are:

  • Live Monitor add-on.
  • Commerce Manager.
Sep 16, 2014 14:59

Thanks Linus good to know!

Sep 16, 2014 15:51
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.