Search code examples
iishttp-status-code-404nuget

Unable to download packages from a self hosted nuget server (404 error)


I installed a self hosted Nuget server as described here. I am using Windows 2008 R2, IIS 7.5 and Nuget 1.7.

From within VS I am able to see my self hosted packages in the package manager window, but when I try to install any of them, I am getting an error "The remote server returned an error: (404) Not Found".

Help anyone?


Solution

  • I hade to perform 3 actions in order to get this to work finally

    1) Some of my packages has the extension ".symbols.nupkg" and I found out that the Nuget server cannot serve those packages only. If I change the extension of the package file from "".symbols.nupkg" to ".nupkg" everything works fine.

    2) All the packages has to be placed flat under the packages folder (no sub-folders).

    3) The packages folder has to be placed below the website (original location is fine, "~/Packages"). I tried to put it in absolute path "C:\NugetPackages" and it did not work.