ActiveReports 12 - Newtonsoft.Json.dll Problem

Posted by: haseeb.mukhtar on 11 January 2019, 7:07 am EST

    • Post Options:
    • Link

    Posted 11 January 2019, 7:07 am EST

    Hi

    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.

    Please suggest.

  • Posted 13 January 2019, 3:44 pm EST

    Hello,

    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:

    Hope it helps.

    Thanks

  • Posted 14 January 2019, 12: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.

    Thanks

  • Posted 14 January 2019, 12:53 am EST

    Hi Mohit,

    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.

    Thanks

  • Posted 14 January 2019, 4:46 pm EST

    Hello,

    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.

    Thanks.

  • Posted 26 August 2020, 5:12 am EST

    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.

  • Posted 26 August 2020, 4:38 pm EST

    Hello Cyril,

    I am assuming that everything is working well after replacing the dll. Please feel to revert back if you have any additional question.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels