Incomplete version of Newtonsoft.Json installed

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 4
Joined: 01 Nov 2014, 18:40

Incomplete version of Newtonsoft.Json installed

01 Nov 2014, 19:05

The installation of Helicon Ape results in an assembly "Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" being installed in the GAC. As it turns out, this particular assembly of "Newtonsoft.Json.dll" appears to be an altered version of the original. Certain convertors (EntityKeyMemberConverter and ExpandoObjectConverter) are in fact missing from this assembly. Websites deployed with the original Newtonsoft.Json.dll in their local bin folder are now overruled by the altered version installed in the GAC. This has severe consequences.

A good example is Umbraco 7 which also uses Newtonsoft.Json, Version=6.0.0.0. If deployed on a hosting environment which has Helicon Ape installed, signing in to the back-office is rendered impossible :shock: (see also http://issues.umbraco.org/issue/U4-4509). Hence, this is a major issue. In order to solve this, Helicon Ape might need to consider using the original Newtonsoft.Json instead of the altered version.

User avatar
Posts: 2
Joined: 03 Nov 2014, 04:56

Re: Incomplete version of Newtonsoft.Json installed

03 Nov 2014, 05:00

I can only agree to this. My hosting provider installed Helicon Ape globally and now My Umbraco is nearly impossible to use.
It took me days of work - now at least somebody found the cause of the troubles!

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Incomplete version of Newtonsoft.Json installed

03 Nov 2014, 07:45

Hello,

Please try using the following piece in web.config:

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

User avatar
Posts: 4
Joined: 01 Nov 2014, 18:40

Re: Incomplete version of Newtonsoft.Json installed

03 Nov 2014, 07:59

Anton,

The assembly redirect you mentioned is already present in the Umbraco 7 web.config. It's not going to work because both Umbraco and Helicon Ape use a Newtonsoft.Json assembly in the Version 6.0 range. If the GAC version is the same or higher, the assembly in the local bin folder gets ignored.

When Newtonsoft.Json version 7.0 is released, then we should be able to resolve this issue using the assembly redirect.

User avatar
Posts: 4
Joined: 01 Nov 2014, 18:40

Re: Incomplete version of Newtonsoft.Json installed

03 Nov 2014, 08:38

Here's some additional information concerning version numbering for Newtonsoft.Json: http://james.newtonking.com/archive/201 ... on-numbers

There's a distinction between assembly version and release number. The latest release of Newtonsoft.Json is 6.0.6. Helicon Ape uses an altered version of release 6.0.3 However, the assembly version remains 6.0 for both releases. So adding release 6.0.6 to the local bin folder combined with an assembly redirect in the web.config is not going to overrule Helicon Ape's altered version of Newtonsoft.Json release 6.0.3 which runs in the Global Assembly Cache.

User avatar
Posts: 2
Joined: 03 Nov 2014, 04:56

Re: Incomplete version of Newtonsoft.Json installed

04 Nov 2014, 07:57

Would it hurt Helicoon Ape if we just install the original version of the dll (release 6.0.3) in the GAC? We should be able to just overwrite the dll, right?
This would be the easiest work-around (beside uninstalling Helicon Ape).

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Incomplete version of Newtonsoft.Json installed

17 Nov 2014, 08:49

Hello!

Sorry for delay. Please try to download and upgrade to Helicon Ape build 145 that is now available: https://www.helicontech.com/ape/download.html
This build now uses different version of Json dll that will not interfere with your projects.

User avatar
Posts: 4
Joined: 01 Nov 2014, 18:40

Re: Incomplete version of Newtonsoft.Json installed

18 Nov 2014, 18:55

Thanks for the swift response to solve this issue! My hosting provider already installed build 145 and my Umbraco 7 back-end is up & running again. Job well done Helicon Ape! :D

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 17 guests