Hotfix Newtonsoft.Json Error

Mani SJ asked on July 6, 2023 04:26

I did an hotfix from 13.0.83 to 13.0.115. I am getting below error when I launch CMS project

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. (Exception from HRESULT: 0x80131040)

In my CMS packages.config I have

<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />

Although its 13.0.1 checking propertes of Newtonsoft reference in CMS says its version as 13.0.0.0

I have below for NewtonSoft

<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />

in CMS web.config, in ContinuousIntegration.exe.config in the CMS/bin & the Lib folder, in SchedulerService.exe.config in the CMS/bin & the Lib folder

What's wrong?

Recent Answers


Mani SJ answered on July 6, 2023 05:34

The lib folder had Newtonsoft 12+ replaced that with Newtonsoft 13.0.0

0 votesVote for this answer Mark as a Correct answer

Not Applicable answered on July 7, 2023 10:32

The Newtonsoft.Json dependency was updated from version 12.0.3 to 13.0.3 with 13.0.110. So that 13.0.3 version should be in your CMS packages.config (not 13.0.1). The Newtonsoft.Json.dll should not exist in the CMS Lib folder, the NuGet package reference for the CMS project is sufficient.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.