Visual Studio / C # : Nuget 원격 서버에 연결할 수 없음
MS Visual Studio에서 솔루션에 Nuget 패키지를 설치하려고합니다.
"솔루션 용 Nuget 패키지 관리"옵션을 선택하고 패키지를 설치하려고하면 "원격 서버에 연결할 수 없습니다"라는 메시지가 나타납니다.
인터넷에 연결되어 있으므로 항상이 메시지를받는 이유를 이해할 수 없습니다.
이 문제를 해결하기 위해 취할 수있는 몇 가지 조치를 알고있는 사람이 있습니까?
감사
HTTP_PROXY 지우기가 저에게 효과적이었습니다.
내가 직접 고칠 게
중요 : 이 섹션, 방법 또는 작업에는 레지스트리를 수정하는 방법을 알려주는 단계가 포함되어 있습니다. 그러나 레지스트리를 잘못 수정하면 심각한 문제가 발생할 수 있습니다. 따라서이 단계를주의 깊게 따르십시오. 추가 보호를 위해 레지스트리를 수정하기 전에 백업하십시오. 그런 다음 문제가 발생하면 레지스트리를 복원 할 수 있습니다. 레지스트리 백업 및 복원 방법에 대한 자세한 내용은 Microsoft 기술 자료의 다음 문서를 참조하십시오. 322756 Windows에서 레지스트리를 백업 및 복원하는 방법
Internet Explorer 프록시 설정을 직접 재설정하려면 다음 단계를 따르십시오.
- Windows XP에서는 시작을 클릭하고 Windows Vista 또는 Windows 7에서는 시작을 클릭 한 다음 실행을 클릭합니다. Windows 8 또는 Windows 8.1에서 실행 명령에 액세스하려면 Windows 로고 키 Windows 로고 키 + R을 누릅니다. 또는 화면 오른쪽 가장자리에서 안쪽으로 살짝 밀고 검색을 탭합니다 (또는 마우스를 사용하는 경우 화면 오른쪽 위 모서리로 이동하고 마우스 포인터를 아래로 이동 한 다음 검색을 클릭합니다. 검색 상자에 실행을 입력 한 다음 실행을 탭하거나 클릭합니다.
- 실행 텍스트 상자에서 복사 (CTRL + C) 및 붙여 넣기 (CTRL + V)하거나 다음을 입력합니다. reg add "HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"/ v ProxyEnable / t REG_DWORD / d 0 / 에프
- 확인을 클릭하십시오.
- Windows XP에서는 시작을 클릭하고 Windows Vista 또는 Windows 7에서는 시작을 클릭 한 다음 실행을 클릭합니다. Windows 8 또는 Windows 8.1에서 실행 명령에 액세스하려면 Windows 로고 키 Windows 로고 키 + R을 누릅니다. 또는 화면 오른쪽 가장자리에서 안쪽으로 살짝 밀고 검색을 탭합니다 (또는 마우스를 사용하는 경우 화면 오른쪽 위 모서리로 이동하고 마우스 포인터를 아래로 이동 한 다음 검색을 클릭합니다. 검색 상자에 실행을 입력 한 다음 실행을 탭하거나 클릭합니다.
- 실행 텍스트 상자에서 복사 (CTRL + C)하여 붙여 넣거나 (CTRL + V) 다음을 입력합니다. reg delete "HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"/ v ProxyServer / f
- 확인을 클릭하십시오.
에서 http://support.microsoft.com/kb/2289942 감사 @Sandy
해결되었습니다. Visual Studio가 fiddler http 연결을 사용하기 때문입니다.
당신이해야 할 일은 fiddler => fiddler 옵션 => 연결 => "시작시 시스템 프록시로 작동"을 선택 취소하는 것입니다.
그게 다야!
이것은 오늘 Visual Studio 2012에서 나에게 매우 무작위로 발생하기 시작했습니다. 약간 단순하지만 Nuget 사이트 자체가 작동하는지 확인하고 패키지 관리자 콘솔을 시도한 후 내 솔루션은 다음과 같습니다.
Visual Studio를 닫았다가 다시 엽니 다.
갑자기 Nuget 서버에 다시 연결하여 필요한 패키지를 다운로드 할 수 있습니다.
도구-> 라이브러리 패키지 관리자-> 패키지 관리자 설정-> 패키지 캐시 지우기
그것은 나를 위해 일했습니다
IE에서 프록시 캐시 지우기이 문제를 해결했습니다. 명령 프롬프트에서 다음 두 명령 줄을 사용합니다 (관리자 권한으로 실행).
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
그때
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
자세한 내용은 https://support.microsoft.com/en-us/kb/2289942 에서 찾을 수 있습니다.
나는 주석을 달아서 내 문제를 해결했습니다.
<system.net></system.net>
에 devenv.exe.config
위치한 섹션
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe.config
위의 제안 중 어느 것도 작동하지 않은 후이 문제를 해결 한 방법은 다음과 같습니다.
Internet Explorer> 도구> 연결> LAN 설정
'자동으로 설정 감지'확인란을 선택 취소합니다. 이것은 나를 위해 Nuget Package Manager 문제를 해결했습니다. 또한 VMWare 가상 데스크톱에서 발생한 또 다른 연결 문제를 해결했으며 보안 사이트에 연결하려고 할 때 Internet Explorer에서 속도가 크게 증가했습니다.
Nuget Package Manager를 최신으로 업데이트하고 가능한 모든 패키지 소스를 선택 취소 한 후에도 VS 2010 패키지 복원 에서이 문제가 발생했습니다. 솔루션에서 Nuget 패키지 복원 옵션을 활성화하는 동안 오류가 발생했습니다.
Nuget 서버에 대한 https 액세스를 제한하지 않은 다른 상자를 사용하여이 문제를 해결했습니다. 패키지 복원을 활성화하기 위해 다른 상자에서 VS 2012를 사용했을 때 제대로 작동했습니다. 복원 작업 중에 사용되는 최신 nuget.exe를 다운로드하려면 nuget 온라인 서버에 연결할 수 있어야한다고 생각합니다. 따라서 사용할 수있는 한 가지 옵션은 필요한 모든 인터넷 액세스 권한이있는 서버에서 패키지 복원 활성화 프로세스를 수행 한 다음 변경 사항을 체크인하는 것입니다. 이러한 변경 사항이 체크인되면 VS 2010 또는 VS 2012에서 솔루션을 다시로드하고 너겟 복원 기능을 사용할 수 있습니다.
도움이 되었기를 바랍니다.
나는 같은 증상을 보였고 분명히 Visual Studio는 IE에서 설정된 프록시 설정을 사용하고있었습니다. 내 문제는 다음 중 하나였습니다.
- IE가 IE 9로 업데이트되었지만 '업데이트 마법사'를 완료하지 않았기 때문에 업데이트가 완료되지 않았습니다.
- 일부 모호한 프록시 설정이 IE에서 설정되었습니다 (셀레늄 RC 테스트 실행의 나머지)
업데이트 마법사를 완료하고 모든 프록시 설정을 지운 후 NuGet 패키지 관리자가 다시 작동했습니다.
동일한 문제가 있었지만 솔루션별로 다르며 위의 어느 것도 작동하지 않았습니다. Visual Studio 솔루션 사용자 옵션 파일 (.suo)을 삭제하고 VS 2013을 다시 시작했으며 이제 패키지를 다시 업데이트하고 설치할 수 있습니다.
마침내 해결되었습니다. Chrome에서 확장 프로그램을 비활성화했습니다. 내 실제 위치를 숨기기 위해 설치했습니다.
Internet Explorer 프록시 설정을 직접 재설정하려면 다음 단계를 따르십시오. 1. Windows XP의 경우 시작을 클릭하거나 Windows Vista 또는 Windows 7의 경우
2459687, 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
2459687, 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.
i could not install globalize in V.S. 2015 and after trying all the answers i tried this. I opened my project in V.S. 2013 and it worked 1st time. hope this helps somebody else
Modem re-start fixed my problem.!
In my case(visual studio 2012-windows10 OS) the problem was with security protocols. Only TLS 1.2 was the enabled protocol and TLS1.1 and TLS1.0 was disabled for some reason. So going into registry and making changes to enable TLS1.0 and TLS1.1 solved the problem.
To enable these protocols you can follow directions on here
I fixed it by uninstall the system proxifier : WideCap
That happened to me when I tried to use Visual Studio from home being connected via public WiFi and my work station was configured to block connections in/out from Internet to VS2017. Check you local firewall setting and ensure that you have Allow for VS2017 when on Public network. (in Windows Defender Firewall & Advanced Security)
nugget.org was blocked in my network for security reason so all the nugget packages are installed from Artifactory via JFrog. After configuring my nugget package manager setting to the link provided by my employer the problem is resolved.
One route that I haven't seen people mentioning is setting the proxy for Nuget in your user folder.
Browse to C:\Users[yourProfile]\AppData\Roaming\Nuget and change your Nuget.config
file to the following:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="http proxy" value="http://yourProxy.yourCompany.org"/>
</config>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
We set this setting and then Nuget immediately worked.
Ok, but now I get a credentials prompt!
If you also end up getting a credentials prompt when trying to load packages from Nuget in Visual Studio, you should try to manually browse to http://www.nuget.org/downloads. I've seen proxies like BlueCoat display a Content Filter Warning the first time someone visits a site, and since you can download content from Nuget, it get's flagged.
So you may need to browse there one time to click 'Accept Terms', and then you'll be able to access it.
Restarted Visual Studio twice solved my problem.
First, I restarted but it did not work. Then, I did almost everything but still didn't work.
Then, restarted again solved my problem.
Internet Properties -> LAN Settings -> uncheck "Automatically detect settings"
Steps:
- Close Fiddler.
- Restart Visual Studio.
ReferenceURL : https://stackoverflow.com/questions/11553591/visual-studio-c-nuget-unable-to-connect-to-remote-server
'programing' 카테고리의 다른 글
VueJS 메서드를 타이프스크립트 농담으로 어떻게 부를 수 있을까요? (0) | 2022.07.19 |
---|---|
배치 파일의 함수 / 방법과 같은 것입니까? (0) | 2021.01.17 |
Dalvik 가상 머신 인스턴스가 각 애플리케이션에 대해 생성됩니까? (0) | 2021.01.17 |
스크립트를 종료하기 전에 백그라운드 프로세스가 완료되기를 기다리는 중 (0) | 2021.01.17 |
jQuery Ajax 요청을 유발하는 Javascript를 찾는 방법은 무엇입니까? (0) | 2021.01.17 |