question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An error occurred while downloading package 'Newtonsoft.Json.10.0.2 :

See original GitHub issue

Visual studio 2015 - New Asp.net web application. framework 4.5.2 Its a brand new project nothing in it besides the stranded code VS adds to the project.

Import package Install-Package Google.Apis.AnalyticsReporting.v4 or Install-Package Google.Apis.AnalyticsReporting.v4 -Version 1.27.1.881

Results in error

PM> Install-Package Google.Apis.AnalyticsReporting.v4 -Version 1.27.1.881 Attempting to gather dependencies information for package ‘Google.Apis.AnalyticsReporting.v4.1.27.1.881’ with respect to project ‘GoogleAuthWebTest’, targeting ‘.NETFramework,Version=v4.5.2’ Attempting to resolve dependencies for package ‘Google.Apis.AnalyticsReporting.v4.1.27.1.881’ with DependencyBehavior ‘Lowest’ Resolving actions to install package ‘Google.Apis.AnalyticsReporting.v4.1.27.1.881’ Resolved actions to install package ‘Google.Apis.AnalyticsReporting.v4.1.27.1.881’ Removed package ‘Newtonsoft.Json.6.0.4’ from ‘packages.config’ Successfully uninstalled ‘Newtonsoft.Json.6.0.4’ from GoogleAuthWebTest Install failed. Rolling back… Package 'Newtonsoft.Json.10.0.2 : ’ does not exist in project ‘GoogleAuthWebTest’ Package ‘Newtonsoft.Json.6.0.4’ already exists in folder ‘C:\Users\HP_User\documents\visual studio 2015\Projects\GoogleAuthWebTest\packages’ Added package ‘Newtonsoft.Json.6.0.4’ to ‘packages.config’ Executing script file ‘C:\Users\HP_User\documents\visual studio 2015\Projects\GoogleAuthWebTest\packages\Newtonsoft.Json.6.0.4\tools\install.ps1’ Package 'Newtonsoft.Json.10.0.2 : ’ does not exist in folder ‘C:\Users\HP_User\documents\visual studio 2015\Projects\GoogleAuthWebTest\packages’ Install-Package : An error occurred while downloading package 'Newtonsoft.Json.10.0.2 : ’ from source ‘https://www.nuget.org/api/v2/’. At line:1 char:1

Note: I can see it removing Json and then adding it again then it rolls everything back.

Update:

This one works Install-Package Google.Apis.AnalyticsReporting.v4 -Version 1.25.0.847 everything after that results in an error. Same thing on just a console application so it has nothing to do with the project type.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

7reactions
mijikincommented, Jun 21, 2017

Found this elsewhere: “For anyone having this issue, the problem is with the URL https://www.nuget.org/api/v2/. Update your application to use https://api.nuget.org/v3/index.json instead and it will install properly”. https://github.com/JamesNK/Newtonsoft.Json/issues/1274

0reactions
greenorigincommented, Aug 15, 2018

to Resolve this issue you need to Update Nuget Package Manger. To update Nuget Package Manager Please Go to Tools => Updates and update Nuget Package Manger.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Install NuGet packages that require Newtonsoft.Json. ...
I had this issue when trying to upgrade my packages and resolved it by upgrading to Newtonsoft.Json version 10.0.1. In package manager run:...
Read more >
click a solution from TFS then build, nuget error
when i click a solution from a TFS (2015, local) server, it will download the ... Json.10.0.2' is not found on source 'C:\Program...
Read more >
Newtonsoft.Json Error after upgrade to 2018
Hi, In my case it was cause by conflict with BalaReva.Externals.Activities - this package contains newtonsoft.json in version 10.0.2 which cause ...
Read more >
Newtonsoft.Json 13.0.3
Json.NET is a popular high-performance JSON framework for .NET.
Read more >
Error restoring NuGet packages / Problems / Discussion Area
Today I'm getting errors when getting nuget packages ... WARNING: Unable to find version '10.0.2' of package 'Newtonsoft.Json'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found