Visual Studio/C#: Nuget Unable to connect to remote server

unable to load the service index for source https api nuget org v3 index json
nuget not able to contact source
nuget package restore failed for project visual studio 2019
visual studio 2019 nuget package source
how to check nuget version in visual studio 2017
nuget package explorer visual studio 2017
install nuget package in visual studio code
nuget unable to load the service index for source unauthorized

In MS Visual studio, I'm trying to install Nuget packages into my solution.

When I choose the option "Manage Nuget Packages for Solution" and attempt to install a package, I get the message "Unable to connect to the remote server".

I do have Internet connection so do not understand why I always get this message.

Is anyone aware of some steps that can be taken to rectify this issue?

Thanks


Clearing HTTP_PROXY worked for me.

Let me fix it myself

Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows

To reset your Internet Explorer proxy settings yourself, follow these steps:

  1. On Windows XP, click Start, or on Windows Vista or Windows 7, click , and then click Run. On Windows 8 or Windows 8.1, to access the Run command, press the Windows logo key Windows logo key + R. Or, swipe in from the right edge of the screen, and then tap Search (or if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search). Type Run in the search box, and then tap or click Run.
  2. In the Run text box, copy (CTRL+C) and paste (CTRL+V) or type the following: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
  3. Click OK.
  4. On Windows XP, click Start , or on Windows Vista or Windows 7, click , and then click Run. On Windows 8 or Windows 8.1, to access the Run command, press the Windows logo key Windows logo key + R. Or, swipe in from the right edge of the screen, and then tap Search (or if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search). Type Run in the search box, and then tap or click Run.
  5. In the Run text box, copy (CTRL+C) and paste (CTRL+V) or type the following: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
  6. Click OK.

From http://support.microsoft.com/kb/2289942 Thanks @Sandy

Fixing the dastardly NuGet Error : “Unable to connect to remote server”, C:\Users\{username}\AppData\Local\NuGet\Cache. Delete the contents of the “​packages” folder that sits alongside your visual studio .sln file. I'm getting "WARNING: Unable to connect to the remote server" on my Nuget Installer step. When I pull the nuget packages from visual studio, it takes a couple minutes before the package list shows up. I'm assuming this is related to why the installer step is failing. Is there a way to extend the timeout for pulling in nuget packages?


Solved. that's because Visual studio is using fiddler http connection.

all you have to do is to open fiddler=> fiddler option => connection => uncheck "act as system proxy on startup".

thats all!

Nuget, r/VisualStudio: Welcome to r/VisualStudio. This subreddit is for discussing and asking questions for the Visual studio IDE. We run an internal NuGet server in the office, the trouble is I work remotely from the other side of the world so I need to connect over a VPN to access the server, this is way too slow for me so I sync up the contents of a local folder on my pc with the NuGet packages from the office and point to this using a custom package source that points


This started happening to me quite randomly today on Visual Studio 2012. A bit simplistic but, after checking if the Nuget site itself was up and trying the Package Manager Console, my solution was to:

Close and reopen Visual Studio

Suddenly it could connect to the Nuget server again and download my much needed packages.

Troubleshooting NuGet Package Restore in Visual Studio, Visual Studio/C#: Nuget Unable to connect to remot for Solution" and attempt to install a package, I get the message "Unable to connect to the remote server". Install-Package : The remote server returned an error: (504) Gateway Timeout. I tryied this from other sources that points to solution but none worked. I see a similar problem on nuget but a code 'fix' was release according to the github repo on January, 15.


Tools -> Library Package Manager -> Package Manager Settings -> Clear Package Cache

That worked for me

Visual Studio – NuGet – No connection could be made because the , A description of common NuGet restore errors in Visual Studio and how to troubleshoot them. it doesn't give us the ability to contact you for more information. nuget.exe CLI · MSBuild · Azure Pipelines · Azure DevOps Server with a tool such as msbuild that does not automatically restore packages. I had a similar issue trying to connect to my private TFS server instead of the public NuGet API server. For some reason I had an issue between the AD server and the TFS server so that it would always return a 401. The NuGet config article shows that you can add your AD username and password to the config file like so:


Clearing the Proxy Cache in IE Fixed this for me. Use these two command lines in the command prompt (run as administrator)

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

then

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f

The details can be found at https://support.microsoft.com/en-us/kb/2289942

C# Quick Start, Unable to connect to the remote server No connection… Visual Studio – NuGet – No connection could be made because the target C:\Program Files (x86)\​Microsoft Visual Studio\<Year>\<Version>\Common7\IDE  Having problem with Connectivity in Nuget Packages windows 10.0 visual studio 2017 performance Cegon Ganesh reported Sep 29, 2017 at 03:45 AM


How to debug The remote name could not be resolved, This guide gets you started with gRPC in C# with a simple working example. For now all you need to know is that both the server and the client “stub” have a The Grpc.Tools NuGet package contains the protoc and protobuf C# plugin binaries needed GreeterClient that can be used to access remote Greeter instances  Visual Studio for Mac.NET. C++. Azure DevOps. Azure DevOps Server (TFS) 0. Unable to download my own Nuget packages that I have just pushed to VSTS. Azure DevOps


WebException: The remote name could not be resolved in C# and how debugging, let's look at how web exceptions can be handled in C#: To find out if you are in fact connected to the Internet, ping Google's DNS server:. To give consent, open the Visual Studio Options dialog, click on the NuGet Package Manager node and check 'Allow NuGet to download missing packages during build.' You can also give consent by setting the environment variable 'EnableNuGetPackageRestore' to 'true'.


The Visual Studio Remote Debugger on the target computer cannot connect back to this computer The remote debugger may be running under a different user account. In the remote debugger, open Tools > Permissions to add the user to the remote debugger's permissions.