且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NuGet - 安装单个包报告“远程服务器返回错误:(404) 未找到."

更新时间:2022-02-19 23:41:29

叹...

http://blogs.thesitedoctor.co.uk/tim/2011/09/02/Nuget+Server+On+IIS6+Returns+404+When+Downloading+Package+After+Upgrade.aspx

万一链接失效...我在 IIS6 中托管我的 NuGet 服务器,该服务器未设置为正确处理无扩展 URL.由于下载单个包的语义从直接文件链接更改为无扩展名路由,我开始收到 404.添加文章中描述的通配符映射立即修复它.

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.