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 47 posts 279 karma points c-trib
    17 days ago
    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 2246 posts 10979 karma points MVP 6x c-trib
    17 days ago
    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 2246 posts 10979 karma points MVP 6x c-trib
    17 days ago
    Matt Brailsford
    100

    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 47 posts 279 karma points c-trib
    16 days ago
    Alejandro Ocampo
    0

    Hi Matt,

    I'll try this today and let you know.

    Thanks!!!

  • Alejandro Ocampo 47 posts 279 karma points c-trib
    16 days ago
    Alejandro Ocampo
    0

    Hi Matt,

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

    Thanks,

    Ale

  • Matt Brailsford 2246 posts 10979 karma points MVP 6x c-trib
    16 days ago
    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 47 posts 279 karma points c-trib
    1 week ago
    Alejandro Ocampo
    0

    Thanks Matt,

    This dll solved the JToken issue.

Please Sign in or register to post replies

Write your reply to:

Draft