Nuget 包源提示输入凭据
我尝试在 VS2010 中使用 NuGet (1.5),但每当我尝试“管理 NuGet 包”或使用包管理器控制台安装包(使用默认包源)时,我都会收到一个对话框,提示我输入凭据。
我使用公司代理,但我的代理凭据不起作用。取消对话框会出现“(401) 未经授权”错误。
我也使用 TFS 2010,但我不知道这是否是问题的一部分。我在这里尝试了解决方案: 使用 NuGet 安装软件包会连接到 TFS 并给出 401 错误,但我什至无法列出软件包。
我尝试了此处建议的不同包源: NuGet 包管理器错误:无法解析远程名称 没有变化。
我在这里尝试了所有解决方案: 无法连接任何在线资源都无济于事,而这个问题TF30063:您无权访问集合。 Nuget 和 Tfs 冲突 类似但不一样。
有什么建议吗?
(编辑)更多信息:
当我运行 Fiddler2 时,以下是我输入凭据时得到的结果。 FW-1 是公司代理/防火墙名称,因此我很确定这是凭据未通过的问题。
HTTP/1.0 401 Unauthorized
WWW-Authenticate: Basic realm="FW-1. Reason: no user Server "
Content-Type: text/html
Content-Length: 166
<TITLE>Error</TITLE>
<BODY>
<H1>Error 401</H1>
FW-1 at firewall2: Unauthorized to access the document.<BR><BR><LI>Authorization is needed for FW-1.<BR><BR>
</BODY>
(编辑 2):这是当我尝试重复登录时 Fiddler2 向我显示的图像。我对该工具不太熟悉,不知道如何获取更多信息。
I am trying to use NuGet (1.5) in VS2010 but whenever I try to "Manage NuGet Packages" -or- use the Package Manager Console to install a package (using the default package source), I get a dialog prompting me for credentials.
I am behind a company proxy but my proxy credentials don't work. Cancelling the dialog gives a "(401) Unauthorized" error.
I also use TFS 2010, but I don't know if that's part of the issue. I've tried the solution here: Installing a package with NuGet connects to TFS and gives a 401 error but I can't even get to a point where I can list the packages.
I've tried a different package source as suggested here: NuGet Package Manager error: The remote name could not be resolved with no change.
I tried all of the solutions here: Cannot connect to any online resource to no avail, and this problem TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting was similar but not the same.
Any suggestions?
(edit) More Info:
When I run Fiddler2, here's what I'm getting when I put in the credentials. FW-1 is the company proxy/firewall name, so I'm pretty sure it's an issue with credentials not being passed.
HTTP/1.0 401 Unauthorized
WWW-Authenticate: Basic realm="FW-1. Reason: no user Server "
Content-Type: text/html
Content-Length: 166
<TITLE>Error</TITLE>
<BODY>
<H1>Error 401</H1>
FW-1 at firewall2: Unauthorized to access the document.<BR><BR><LI>Authorization is needed for FW-1.<BR><BR>
</BODY>
(edit 2): Here's an image of what Fiddler2 is showing me when I try to repeatedly login. I'm not that familiar with the tool to know what I can do to get more information.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试以下解决方案吗:修复工作组配置中 NuGet 和 Team Foundation 的组合:401 未经授权。
Can you try this solution: Fixing combination of NuGet and Team Foundation in workgroup configuration: 401 Unauthorized.