4

Okay, here's another weird one...

I have installed and setup an in house nuget server for our company - it is running the latest version on nuget (2.2.31210.9045). I can hit the url in my browser (http://{server}) and (http://{server}/nuget) and (http://{server}/nuget/packages) and get all the expected responses.

However, in Visual Studio 2012 I added http://{server}/nuget/ as a custom feed and when I load up the package manager, i get "The remote server returned an error: (503) Server Unavailable."

I tried this on a few other coworkers' machines and they are able to browse the packages on the server, it seems to only be me.

I cannot find any information on this, or how to debug it. I'm trying to figure out if there is a way to reset this or see if there are some troubleshooting steps i can take to figure out what might be going on.

Note: I have had issues before with network connectivity and my install of vs2012 (resolved here)

Community
  • 1
  • 1
Robin
  • 1,074
  • 8
  • 29
  • Have you tried doing this while Fiddler (http://www.fiddler2.com/) was running? You might also want to run ELMAH on the server to see if that can reveal any interesting exceptions. – Clay Compton Mar 02 '13 at 06:25
  • I did run fiddler and it doesn't pick up the requests, I'm guessing because vs doesn't go through the same local proxy that fiddler sets up... Elmah, unfortunately was turned off by production control and it is a huge politic battle to get them to help me with this since it works for everyone but myself. Still trying to get them to give me some logs or something from the server. – Robin Mar 03 '13 at 13:46
  • Can you setup a package store locally and see if you are able to access packages from that store? Just to iron out the issue with antivirus or firewall related stuff. Also try clearing the cache (%appdata%\Nuget\), and setup the server again. – Soundararajan Mar 06 '13 at 11:02
  • Thanks for the help, I can set up a local folder and it works fine. It should not be a firewall issue since it's managed by GP and my peers (on the same GP) are able to access it. Also, I have deleted the nuget local cache and still no success. – Robin Mar 06 '13 at 16:43

2 Answers2

1

After trying everything I could think of multiple times without success, I ran across this:

http://wangz.itysc.com/2012/08/nuget-install-package-remote-server.html

Tony says he had a similar problem with VS2010 (and I do have 2010 installed) so, out of desperation I installed that Service Pack (which doesn't appear to be related) and it magically fixed it in VS2012!

Robin
  • 1,074
  • 8
  • 29
  • 4
    Just to add, I had this issue and it was because my computer had environment variables for HTTP_PROXY and HTTPS_PROXY and no one else did – Seph Oct 27 '14 at 15:22
  • Yup, the HTTP_PROXY environment variable that I added for my npm setup, screwed this up! Removing that variable resolved my issue. – theraneman Dec 15 '16 at 09:06
  • This solved my problem as well. By deleting the HTTP_PROXY and HTTPS_PROXY from environment variable. – zacs Apr 12 '22 at 07:04
-1

try the following 2 commands

netsh http delete urlacl url=http://+:80/  
netsh http delete urlacl url=http://+:443/

then restart visual studio and check. Plese refer here

Good luck.

Community
  • 1
  • 1
Soundararajan
  • 2,000
  • 21
  • 23
  • Thanks, I looked at the documentation for this and then tried to run it, but for both commands, i'm receiving URL reservation delete failed, Error: 2 They system cannot find the file specified. – Robin Mar 06 '13 at 16:39
  • That means, you are not having any existing reservations – Soundararajan Mar 06 '13 at 18:19