Visual Studio 错误:(407:需要代理身份验证) [英] Visual Studio Error: (407: Proxy Authentication Required)

查看:42
本文介绍了Visual Studio 错误:(407:需要代理身份验证)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我支持需要凭据的公司代理服务器.在过去的 2 小时内,我一直在尝试使用 MS Visual Studio Pro 2012 连接到 TFS 服务器(在 tfspreview.com 上),但没有成功.每次尝试都遇到此错误:

I am behind a corporate proxy server which requires credentials. I have been trying to connect to a TFS server (on tfspreview.com) with MS Visual Studio Pro 2012 for the last 2 hours with no success. Every attempt has been met with this error:

集成浏览器在我启动时工作正常.它要求我提供我的代理登录凭据,一旦输入,我就走了.所以这里发生了一些不同的连接方法.

The integrated browser works fine when I initiate it. It asks me for my proxy login credentials and once entered, off I go. So there is some different method of connection happening here.

我还导航到 TFS 服务器,并在我的项目中单击了打开 Visual Studio 的新实例.新实例失败并在输出中显示此消息:

I have also navigated to the TFS server, and once in my project I clicked Open new instance of Visual Studio. The new instance fails with this message in the output:

HTTP code 407: Proxy Authentication Required

我已经尝试了在另一篇文章中找到的所有内容 无济于事.我对 devev.exe.config 进行了所有编辑和组合编辑,但都没有成功.

I have tried everything that I found on another post to no avail. I have made every edit and combination edits to devev.exe.config that I have found with no success.

2010 版会不会与 2012 年 Pro 版有些不同?我运行的是 Windows 7.

Could it be that the 2010 version is somehow different than the 2012 Pro edition? I am running Windows 7.

谁能解释一下?请?

注意:这个问题也适用于 Visual Studio 2013

Note: This problem also applies to Visual Studio 2013

推荐答案

找了三天,解决方案落到了我的腿上.

现在,VS 尝试进行自动更新但被代理停止了.系统提示我输入凭据并进行了检查.

Now, what happened was VS tried to do an automatic update but was stopped by the proxy. I was prompted for credentials and the check took place.

我受到启发检查 TFS 服务器连接只是为了以防万一提示可能会为 TFS 服务器建立连接以通过隧道...瞧!成功了!

I was inspired to check the TFS server connection just for kicks in case that prompt would possibly establish a connection for the TFS server to tunnel through... lo and behold! It worked!

解决方法:

  1. 打开工具>扩展和扩展更新
  2. 点击左侧菜单中的更新...
  3. 屏幕上会显示失败通知和用于输入凭据的链接.单击它并输入它们.
  4. 关闭扩展管理器.
  5. 点击团队>连接到 TFS 服务器...
  6. 输入地址即可!

注意: 有些人建议尝试通过打开集成浏览器来使用代理凭据提示,但这并没有奏效.我不是专家,但我认为他们是通过 Windows 内部的不同渠道进行联系的.

Note: Some have suggested trying to use the proxy credential prompt by opening the integrated browser but this has not worked. I am not an expert but I think they are connecting through different channels within windows itself.

无需编辑 devenv.exe.config 即可运行.

There is no editing of devenv.exe.config required for this to work.

每次需要连接到服务器时都必须手动检查更新会很痛苦,但这是我想出的最佳解决方案,直到 Microsoft 通过更新或未来版本永久修复此问题.

It will be a pain to have to check for updates manually every time you need to connect to the server, but this is the best solution I have come up with until Microsoft fixes this issue permanently with an update or future release.

这篇关于Visual Studio 错误:(407:需要代理身份验证)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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