NuGet - 安装单个包报告“远程服务器返回错误:(404) 未找到." [英] NuGet - Installing Individual Packages reporting "The remote server returned an error: (404) Not Found."

查看:44
本文介绍了NuGet - 安装单个包报告“远程服务器返回错误:(404) 未找到."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用本地 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."

这些包都在文件系统中,并且提要本身可以适当地看到所有包.我什至可以直接浏览包裹!

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.

推荐答案

叹...

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.

这篇关于NuGet - 安装单个包报告“远程服务器返回错误:(404) 未找到."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆