Error when installing packages from Nuget.Server

Topics: Ecosystem
May 31, 2012 at 3:21 PM
Edited May 31, 2012 at 4:10 PM

My team has an internal Nuget.Server feed that we set up a couple of months ago. It was working correctly with Nuget 1.6, but it's failing now. 

I'm able to view the landing page in a browser and see a list of packages in Visual Studio, but attempting to install one results in a vague error:

Operation failed. Unable to connect to the remote server

We've updated our package manager extesions to 1.8, which is probably what caused the problem. I've since updated the feed to the latest Nuget.Server version, but we're still seeing the issue.

Any suggestions?


UPDATE: I did some snooping around with Fiddler, and it looks like the issue is being caused by our use of a load balancer to handle the incoming traffic. Our site is configured to use SSL (no authentication), but the load balancer decrypts the traffic and passes it along to IIS. Nuget.Server looks at the incoming request, sees http and uses that in the URLs that it generates for the packages. 

Is there a convenient way to force the server to use https when formatting the URLs?

Mar 5, 2013 at 7:43 AM
I know this question is a bit stale, however, I also host a NuGet server behind a load balancer (aws elb) with SSL termination on the elb. I figured I could use IIS rewriter to rewrite the protocol bit but failed. Here's the stackoverflow question: I would think this would be a growing issue with the popularity of cloud computing.