问题
I'm trying to host nuget on my Amazon EC2 VPS, and I'm having issues.
- I've followed the instructions here ( Hosting your own NuGet Feeds )
- I've read this thread ( NuGet: remote server returned an Error(403) Forbidden ) along the same lines.
- I'm not running TFS
- It "could" be a proxy issue, but I'm not entirely sure how to check.
My NuGet feed is located at http://nuget.infinitas.ws. You'll notice that both http://nuget.infinitas.ws/nuget/Packages and http://nuget.infinitas.ws/Packages are throwing errors.
Any help with this will be greatly appreciated.
回答1:
You are probably running the NuGet.Server in a Web Site-project. Try to run it via an ASP.NET Web Application instead (in Visual Studio you can create one via File -> New -> Project -> ASP.NET Web Application)
回答2:
Have you tried the latest version (1.5)?
The release notes include some changes related to proxy authentication:
Support for Proxies that require authentication
When using NuGet behind a proxy that requires authentication, NuGet will now prompt for proxy credentials. Entering credentials allows NuGet to connect to the remote repository.
回答3:
I realize I'm a little late to the party but I've just spent a frustrating couple of hours with the same problem.
I found that switching the Application Pool from "Classic" to "Integrated" fixed the problem
来源:https://stackoverflow.com/questions/7276420/nuget-server-returning-403s-and-404s