I use NuGet in Visual Studio 2017 to try installing the package in an older Web Forms project, and it does not work with the following error:
Invalid URI: The Authority/Host could not be parsed
This only happens when you try to install the package on a website that displays in IIS (other projects work fine), so the project name is http: // localhost ... etc., and thatβs what I think u him parsing problems. It worked fine until a few days ago, and I'm not sure what changed it. Here is the complete message I receive:
Resolved actions to install package 'Newtonsoft.Json.10.0.3' Found package 'Newtonsoft.Json 10.0.3' in 'd:\packages'. Package 'Newtonsoft.Json.10.0.3' already exists in folder 'd:\packages' Install failed. Rolling back... Package 'Newtonsoft.Json.10.0.3' does not exist in project 'http://localhost:89/' Executing nuget actions took 71.95 ms Failed to add reference to 'Newtonsoft.Json'. Invalid URI: The Authority/Host could not be parsed.
Another related key is that when I open "Manage NuGet Pacakges ..." in a website project, it does not show anything as installed, although the packages.config file clearly exists in this project with several specific links.
My environment is as follows:
Visual Studio Professional 2107 Version 15.5.2, Microsoft.NET Framework version 4.7.02556, NuGet Package Manager Version 4.5.0, and my NuGet repository is installed for installation in D: \ packages
Does anyone have any advice on what settings I can change to work again?
source share