Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alejandro Ocampo 67 posts 330 karma points c-trib
    Sep 05, 2019 @ 16:06
    Alejandro Ocampo
    0

    The type 'JToken' exists in both 'Newtonsoft.Json, Version=12.0.0.0 and 'TeaCommerce.PaymentProviders, Version=3.1.7184.24107'

    Hi,

    Trying to integrate stripe I realised I had to upgrade from 3.3.1 to 3.3.2 but now I see this error

    The type 'JToken' exists in both 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and 'TeaCommerce.PaymentProviders, Version=3.1.7184.24107, Culture=neutral, PublicKeyToken=null'

    in a place where Newtonsoft.Json.Linq.JToken was used.

    VS let me choose Newtonsoft.Json to resolve this conflict, still fails.

    enter image description here

    Have you seen this?

    Thanks, Ale

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 05, 2019 @ 17:02
    Matt Brailsford
    0

    Hey Alejandro,

    I haven't seen it myself, but I can guess what the issue is.

    In TC we ILMerge the payment providers dependent assemblies together, but clearly one of those is NewtonsoftJson so this is now causing problems when you want to come to access it as there are technically now two versions of it in the bin folder.

    I'm really going to have to take a look at this an see if there is a better approach.

    In the mean time I can only suggest that you pull the source code down for the payment providers and recompile them yourself without the dependencies merged

    https://github.com/TeaCommerce/Tea-Commerce-Payment-Providers

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 05, 2019 @ 17:58
    Matt Brailsford
    101

    Hey Alejandro,

    I've recompiled the payment providers dll internalizing all the 3rd party dependencies. Do you want to give this a try and see if this helps.

    https://www.dropbox.com/s/e44rst8u5i2ptte/TeaCommerce.PaymentProviders.dll.20190905.1856.zip?dl=0

    I'd check the full checkout process works if you can.

    Matt

  • Alejandro Ocampo 67 posts 330 karma points c-trib
    Sep 06, 2019 @ 09:55
    Alejandro Ocampo
    0

    Hi Matt,

    I'll try this today and let you know.

    Thanks!!!

  • Alejandro Ocampo 67 posts 330 karma points c-trib
    Sep 06, 2019 @ 11:00
    Alejandro Ocampo
    0

    Hi Matt,

    Does 3.3.3 contains this new version of TeaCommerce.PaymentProviders.dll ??

    Thanks,

    Ale

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 06, 2019 @ 11:52
    Matt Brailsford
    0

    Hey Ale,

    Unfortunately not 😞

    Someone else reported a blocking issue with Stripe which we fixed as soon as we could, but then your issue came up after that release.

    Not ideal to release multiple versions so quickly, but unfortunately the fact we ship the providers with the core product means it's our only option.

    Once we know this is resolved it will mean realising another version.

    The DLL I've provided contains both fixes.

  • Alejandro Ocampo 67 posts 330 karma points c-trib
    Sep 13, 2019 @ 15:58
    Alejandro Ocampo
    0

    Thanks Matt,

    This dll solved the JToken issue.

  • Bo Jacobsen 608 posts 2406 karma points
    Sep 24, 2019 @ 10:45
    Bo Jacobsen
    0

    We had the same issue and the fix helped.

Please Sign in or register to post replies

Write your reply to:

Draft