ThinkGeo.com    |     Documentation    |     Premium Support

Wrong version of Newtonsoft.Json is downloaded from Nuget packes update

I am trying to evaluate the example “UsDemographicMapSample-ForMvc”.

I have some problems with the version number of Newtonsoft.Json.
When I open the solution and update the nuget packes I get version 10.0.1 of Newtonsoft.Json.
When I debug the project an exception is thrown:
“An exception of type ‘System.IO.FileNotFoundException’ occurred in mscorlib.dll but was not handled in user code
Additional information: Could not load file or assembly ‘Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies. The system cannot find the file specified.”

I am not able to manually download version 9.0.0.0 from https://www.nuget.org/packages/Newtonsoft.Json/
as version 9.0.0.0 doesn’t exist. Only the versions 8.03, 9.0.1, 10.0.1, 10.0.2 and 10.03.

How can we solve this problem?

Best regards
Niels Olsen

Hi Niels,

The Newtonsoft.Json package isn’t our company package, and it is open source. Newtonsoft.Json version 9.0.0.0 maybe been removed by community from NuGit.org, so you don’t install it.

Base on your information, you need to update Newtonsoft.Json to version 10.0.1, and we guess there is some issue for Web.Config. You need to update package version in the Web.Config.

We have updated the packages of this sample. Please get the latest code from https://github.com/ThinkGeo/UsDemographicMapSample-ForMvc.git.

If you have any questions, please feel free to contact us.

Thanks,
Mark