NuGet/NuGetGallery — Issue #412: 403 forbidden listing packages
Author: thnk2wn
Created: 2012-02-16 02:22:15+00:00
State: open

I have the NuGet gallery site itself working fine on our Windows Server 2008 R2 box but I am running into issues hitting the API remotely via Visual Studio or NuGet.exe. In this case the issue is listing packages:

c:\>nuget list -source http://dev-server/nuget
The remote server returned an error: (403) Forbidden.

#	Result	Protocol	Host	URL	Body	Caching	Content-Type	Process	Comments	Custom
4	403	HTTP	dev-server	/nuget/$metadata	0	tmproxy:11424

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2012-02-16 02:10:08
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-02-16 02:10:08 [source_ip] GET /nuget - 80 - [IP] - 200 0 0 4281
2012-02-16 02:10:08 [source_ip] GET /nuget/$metadata - 80 - [IP] - 403 18 0 937

Do I need to do anything additional on the server be it IIS, web.config, directory security etc.? Or maybe I need to adjust the package source I'm sending in?

Thanks