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

查看:739
本文介绍了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."

这些软件包都在文件系统中,并且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.

推荐答案

叹息...

:如果链接消失了,...我将NuGet服务器托管在IIS6中,该服务器未设置为正确处理无扩展名的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天全站免登陆