NuGet-安装单个软件包,报告“远程服务器返回错误:(404)未找到." [英] NuGet - Installing Individual Packages reporting "The remote server returned an error: (404) Not Found."
问题描述
使用本地NuGet服务器时,每当我尝试从该服务器安装单个软件包时,我得到的只是以下错误:远程服务器返回了错误:(404)找不到."
When using a local NuGet server, whenever I try to install an individual package from that server, all I get is this error: "The remote server returned an error: (404) Not Found."
这些软件包都在文件系统中,并且feed本身会适当地查看所有软件包. 我什至可以直接浏览该软件包!
The packages are all there in the filesystem and the feed itself sees all the packages appropriately. I can even browse the package directly!
我想念什么?
我确实从NuGet服务器1.4升级到1.5,但是我以前见过这种情况.触摸用于帮助的软件包文件,但现在看来并非如此.
I did just upgrade from NuGet server 1.4 to 1.5, but I've seen this happen before. Touching the package files used to help, but that does not appear to be the case now.
编辑:实际上,我之前没有看到过确切的错误...我已经看到这断断续续地,碰到包装的东西往往可以解决.
Actually, I hadn't seen that exact error before...I've seen this one, intermittently, that touching the package tended to fix.
推荐答案
叹息...
In case the link ever dies...I am hosting my NuGet server in IIS6, which wasn't set up to properly handle extensionless URLs. And since the semantics of downloading individual packages changed from a direct file link to an extensionless route, I started getting 404s. Adding the wildcard mapping described in the article fixed it instantly.
这篇关于NuGet-安装单个软件包,报告“远程服务器返回错误:(404)未找到."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!