[JSON_Compare] Json Compare publish error
Forge component by Steven Phipps
Application Type
Traditional Web
Service Studio Version
11.11.5 (Build 44224)

Hello All,

Currently I am trying the JSON Compare forge component to validate/check the new values with existing record's values but there is an error while publishing the extension in my environment. Does anyone have any idea?

Hello @J u n i o r,

Click on the first error. Does it require NewtonSoft as it does in the screenshot below?

If so, then you need to install NewtonSoft.Json. 

If you are wondering how to install, then read on - 

1. Click on the 'Edit Source Code .NET' icon in Integration Studio, this opens your visual studio IDE.

2. Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution

3. Search for NewtonSoft.json -> select your Project -> Install.

4. Build the JSON_Compare project in Visual Studio. It should build successfully.

5. Back in Integration Studio, publish again.

Hope this helps,

- AJ

Hi @J u n i o r ,

With addition of AJ you have to add Newtonsoft.JSON assembly into your .Net . Here is link

https://www.nuget.org/packages/newtonsoft.json/10.0.1

Hey

its look like because of the missing toolset. you can try the below-suggested solution. 

You need to open it in visual studio and applies the above solution.

I hope it could solve your problem.

https://stackoverflow.com/questions/20886391/vs-2012-project-failed-to-build-because-of-missing-toolset

Best of luck

Amit


@AJ. @PSS @Amit Jain , Hi Guys, 

The error message shown in the window is like this:

.NET Compilation.


Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Web", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 

JSON_Compare.cs(9,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) 

JSON_Compare.cs(33,53): error CS0246: The type or namespace name 'JObject' could not be found (are you missing a using directive or an assembly reference?) 

JSON_Compare.cs(33,69): error CS0246: The type or namespace name 'JObject' could not be found (are you missing a using directive or an assembly reference?) 

JSON_Compare.cs(113,52): error CS0246: The type or namespace name 'JArray' could not be found (are you missing a using directive or an assembly reference?) 


JSON_Compare.cs(113,67): error CS0246: The type or namespace name 'JArray' could not be found (are you missing a using directive or an assembly reference?) 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.