The type 'JObject' exists in Newtonsoft.Json and TeaCommerce.PaymentProviders
Recently installed Tea Commerce and I'm getting the following error on pages which have a grid layout.
The type 'JObject' exists in both 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and 'TeaCommerce.PaymentProviders, Version=3.1.7187.31639, Culture=neutral, PublicKeyToken=null'
Line 72: {
Line 73: var attrs = new List<string>();
Line 74: JObject cfg = contentItem.config;
Line 75:
Line 76: if (cfg != null)
Source File: Views\Partials\Grid\Bootstrap3.cshtml Line: 60
The type 'JObject' exists in Newtonsoft.Json and TeaCommerce.PaymentProviders
Recently installed Tea Commerce and I'm getting the following error on pages which have a grid layout.
I've tried the following without any luck
Newtonsoft.Json.Linq.JObject cfg = contentItem.config;
I've researched various methods, for example, https://stackoverflow.com/a/17651003 and https://stackoverflow.com/a/517169, but I wanted to check with the Umbraco community before trying anything else.
Additional Information
Hi Sean,
This is a problem with how we compiled the payment providers dll. The references should have been internalized when we merge them.
If you take a look at this forum post https://our.umbraco.com/packages/website-utilities/tea-commerce/tea-commerce-support/98924-the-type-jtoken-exists-in-both-newtonsoftjson-version-12000-and-teacommercepaymentproviders-version-31718424107 there is a download to an alternatively compiled payment providers dll which should hopefully work.
(This reminds me that I need to get that update pushed out soon, but the dll should at least resolve it for you now)
Matt
Thanks the information Matt.
For the time being, I've replaced Newtonsoft variables, i.e. JObject, JProperty, with var in grid Partial Views.
is working on a reply...