visual-studio 使用代理身份验证连接到 Team Foundation Server (TFS)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1005955/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Connecting to Team Foundation Server (TFS) with proxy authentication
提问by Alex Angas
Yesterday I created a new project in Codeplex. I created a connection from Visual Studio to the TFS server I was assigned and uploaded my solution successfully. Today I'm trying to connect again to the Codeplex TFS server to work on the solution. When I try to open it, I get the error:
昨天我在 Codeplex 中创建了一个新项目。我创建了从 Visual Studio 到分配给我的 TFS 服务器的连接,并成功上传了我的解决方案。今天,我试图再次连接到 Codeplex TFS 服务器以研究解决方案。当我尝试打开它时,出现错误:
Team Foundation Server https://tfs06.codeplex.com/does not exist or is not accessible at this time.
The remote server returned an error: (407) Proxy Authentication Required.
Team Foundation Server https://tfs06.codeplex.com/目前不存在或不可访问。
远程服务器返回错误:(407) 需要代理身份验证。
The corporate environment I'm using does use proxy authentication but this wasn't an issue yesterday. Any ideas on why it worked then and how to make it work now?
我使用的公司环境确实使用代理身份验证,但这不是昨天的问题。关于它为什么起作用以及现在如何使它起作用的任何想法?
回答by Martin Woodward
Do you want to try refreshing the start page in Visual Studio (View, Other Windows, Start Page)? Sounds bizarre but the following forum post suggest that this might work...
是否要尝试在 Visual Studio 中刷新起始页(视图、其他窗口、起始页)?听起来很奇怪,但以下论坛帖子表明这可能有效......
http://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/c46afd34-09ea-4505-a34e-b378cb35138d
http://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/c46afd34-09ea-4505-a34e-b378cb35138d
回答by Alex Angas
Visiting the Start Page (under View, Other Windows, Start Page) as recommended by Martinseems to reset the proxy authentication in some way.
按照Martin 的建议访问起始页(在“查看”、“其他窗口”、“起始页”下)似乎以某种方式重置了代理身份验证。
An authentication prompt will then appear by going to Tools, Connect to Team Foundation Server, and selecting the server from the dropdown. Going to File, Source Control, Go Online then reconnects the solution.
然后,通过转到“工具”、“连接到 Team Foundation Server”并从下拉列表中选择服务器,将出现身份验证提示。转至文件、源代码管理、转至在线,然后重新连接解决方案。

