Reference nuget package from JFrog artifactory in Visual Studio .Net Project
Jfrog artifactory binding throwing "Failed to load" error while trying to pull nuget package in Visual Studio 2017. But I can be able to download same through browser and curl command on GIT bash prompt. Please suggest what I need to do to reference and download it in Visual studio to utilize in any .Net project.
Thanks,
Ashish
.NET
ASP.NET Core
C#
-
Tianyu Sun-MSFT 27,356 Reputation points • Microsoft Vendor
2021-12-02T07:06:28.6+00:00 Hi @Ashish Gupta , did you get NuGet package by right-clicking the project > Manage NuGet Packages… > Browse > Install? Is there any detailed error message except "Failed to load"?
-
Ashish Gupta 1 Reputation point
2021-12-02T07:19:25.75+00:00 Hi @Tianyu Sun-MSFT , Please find the detailed error message.
[RPAArtifactory] The V2 feed at 'https://artifactory.xyz.com/artifactory/rpa-nuget-local/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='net45'&includePrerelease=true&$skip=0&$top=26&semVerLevel=2.0.0' returned an unexpected status code '404 Not Found'.
-
Tianyu Sun-MSFT 27,356 Reputation points • Microsoft Vendor
2021-12-02T07:41:43.35+00:00 Hi @Ashish Gupta , is the package source set to
nuget.org
(https://www.nuget.org/api/v2/), in Tools > Options > NuGet Package Manager > Package Sources? And did you choosenuget.org
in NuGet Package Manager? -
Ashish Gupta 1 Reputation point
2021-12-02T08:04:20.103+00:00 Hi @Tianyu Sun-MSFT , In current scenario, I am trying to reference JFrog artifactory rather than nuget.org to get the required package. I am following all the steps mentioned in "Set Me Up" dialog box on JFrog artifactory portal for adding package source reference in Visual Studio. I can be able to view all package through browser but in Visual studio throwing errors. Please guide.
-
Tianyu Sun-MSFT 27,356 Reputation points • Microsoft Vendor
2021-12-02T08:22:56.157+00:00 Hi @Ashish Gupta , would you mind sharing me the steps which you are following? I am willing to try it on my side and figure out how to fix this issue.
-
Ashish Gupta 1 Reputation point
2021-12-02T09:07:14.827+00:00 -
Tianyu Sun-MSFT 27,356 Reputation points • Microsoft Vendor
2021-12-03T04:42:02.747+00:00 Hi @Ashish Gupta , thanks for sharing me the screenshots. The error message mentioned
V2
, and theV2
protocol may provide slower and less reliable service. I suggest you remove this package source and close VS, reboot your machine, open VS and try to add the package source again or try this steps several times to see whether the error will disappear. -
Ashish Gupta 1 Reputation point
2021-12-03T07:00:05.7+00:00 Hi @Tianyu Sun-MSFT , I have tried as suggested to update the package resource and rebooting machine multiple times. It didn't work and getting same error again. Please suggest what other alternative can be tried.
-
Tianyu Sun-MSFT 27,356 Reputation points • Microsoft Vendor
2021-12-03T07:59:33.077+00:00 Hi @Ashish Gupta , I think the next thing you can try is modifying the Source(path). You can try to modify it to point to the last folder where the
.nupkg
file is stored. -
Ashish Gupta 1 Reputation point
2021-12-03T10:19:01.807+00:00 Hi @Tianyu Sun-MSFT , I have tried all possible hierarchical path but it is showing same error.
-
Lex Li (Microsoft) 4,742 Reputation points • Microsoft Employee
2021-12-04T19:49:39.87+00:00 When this issue can be isolated to this level (404 on a specific Artifactory URL), you shouldn't bother anyone here to assist but should go straight to Artifactory technical support to learn how to fix that. It might be a simple configuration issue, but only the vendor of Artifactory knows the best.
Sign in to comment