I am trying to upgrade from ActiveReports 9 to ActiveReports 12.
It seems ActiveReports 12 needs Newtonsoft.Json.dll v7.0.1.
In our solution we are using Newtonsoft.Json.dll v10.0.3. and can not use old version of Newtonsoft.Json.dll.
If I have Newtonsoft.Json.dll v10.0.3 on root folder active report designer is giving error.
mohitg
Posted 14 January 2019, 12:44 am EST
ActiveReports does not support the 8 or higher version of Newtonsoft.Json. You can use the 8 or higher of Newtonsoft.Json with the old version of it by using “BindingDirect”. You need to put the following lines of code in config file:
haseeb.mukhtarPosted 14 January 2019, 9:39 am EST
Thanks Mohit for your reply,
So this means I can use Newtonsoft.Json v10 with active reports 12? I will try.
Is there is any other work around, because this means we have to deploy config file as well, currently we do not deploy config file.
haseeb.mukhtarPosted 14 January 2019, 9:53 am EST
Thanks, I can run the active reports 12 with Newtonsoft.Json v10 by adding the bindingRedirect in config file.
Also I think the report viewer do not requires the Newtonsoft.Json but report designer needs Newtonsoft.Json.
Can you please confirm which components of active reports 12 needs Newtonsoft.Json.
mohitg
Posted 15 January 2019, 1:46 am EST
This is the only way to use the active reports 12 with Newtonsoft.Json v10. You need to add the bindingRedirect in the config file.
Yes, only the Designer needs the Newtonsoft.Json.AR WinViewer does not need the Newtonsoft.Json.
Hope it clarifies.
cpyfferoenPosted 26 August 2020, 2:12 pm EST
ActiveReports does not support the 8 or higher version of Newtonsoft.Json.
All of the NuGet packages for AR14 list dependency of Newtonsoft.Json (>= 11.0.2)
But then I get Runtime Exception - telling me it has to be v7.x.x
So is there an error in the dependencies?
EDIT: I was very much mistaken - had wrong dll’s in the wrong place - AR14 does use Newtonsoft.Json 11+ - all was working well.
mohitg
Posted 27 August 2020, 1:38 am EST
I am assuming that everything is working well after replacing the dll. Please feel to revert back if you have any additional question.
Upgrade your support plan and get personal unlimited phone support with our customer engagement team