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.
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
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.
Have you seen this?
Thanks, Ale
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
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
Hi Matt,
I'll try this today and let you know.
Thanks!!!
Hi Matt,
Does 3.3.3 contains this new version of TeaCommerce.PaymentProviders.dll ??
Thanks,
Ale
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.
Thanks Matt,
This dll solved the JToken issue.
We had the same issue and the fix helped.
is working on a reply...