402(需要付款)用于NuGet下载 [英] 402 (Payment Required) for NuGet downloads

查看:72
本文介绍了402(需要付款)用于NuGet下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2017(或2015)的NuGet程序包管理器中,当我尝试从自己的浏览NuGet程序包时公司的软件包源存储库,我收到以下错误消息(此错误最近才开始发生, 并且一周前没有发生):

In Visual Studio 2017 (or 2015), in NuGet package manager, when I try to browse NuGet packages from my own company's package source repository, I get the following error (this started happening recently, and didn't happen a week ago):

 

[mycompany(Prod-Debug)]无法加载源的服务索引 https://mycompany.pkgs.visualstudio.com/_packaging/Prod-Debug/nuget/v3/index.json .

[mycompany (Prod-Debug)] Unable to load the service index for source https://mycompany.pkgs.visualstudio.com/_packaging/Prod-Debug/nuget/v3/index.json.

  响应状态代码不表示成功:402(需要付款).

  Response status code does not indicate success: 402 (Payment Required).

 

当我尝试下载时,我收到非常相似的错误(无法加载源的服务索引...")任何其他NuGet程序包.

I get very similar errors ("Unable to load the service index for source...") when I try to download any other NuGet package.

我的公司与MPN建立了行动宝盒级合作伙伴关系.为什么这突然发生了?

My company has Action Pack level partnership with MPN. Why is this suddenly happening?

推荐答案

bpearce-edu,

Hi bpearce-edu,

感谢您在此处发布.

所需的402付款"状态代码表示私人供稿已被锁定,因为供稿所有者的订阅已过期.

The 402 Payment Required status code means that the private feed is locked because the feed owner's subscription has expired.

如果私人Feed的所有者将付费订阅降级为免费订阅,或者订阅到期,则该帐户上的任何私人Feed都会在几天内变为只读状态.在此期间之后,供稿将被锁定,这意味着私人供稿 在续订订阅或将Feed公开之前,无法访问

If the owner of a private feed downgrades a paid subscription to a free one or if the subscription expires, any private feeds on the account will become read-only for a period of days. After this period, the feed will become locked, meaning private feeds cannot be accessed until the subscription is renewed or the feed is made public.

要解决此问题,请尝试 联系您的所有者 公司的软件包源存储库.作为测试,您可以从 nuget.org ,例如Newtonsoft.Json.

To resolve this issue, please try to contact the owner of your company's package source repository. As a test, you can download a common package from the nuget.org, for example, Newtonsoft.Json.

希望这可以为您提供帮助.

Hope this can help you.


这篇关于402(需要付款)用于NuGet下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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