Nuget Server returning 403's and 404's

戏子无情 提交于 2019-12-10 15:44:14

问题


I'm trying to host nuget on my Amazon EC2 VPS, and I'm having issues.

  1. I've followed the instructions here ( Hosting your own NuGet Feeds )
  2. I've read this thread ( NuGet: remote server returned an Error(403) Forbidden ) along the same lines.
    1. I'm not running TFS
    2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!