Visual Studio 2012 不断失去与 TFS 2010 的连接 [英] Visual Studio 2012 keeps losing connection with TFS 2010

查看:35
本文介绍了Visual Studio 2012 不断失去与 TFS 2010 的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2012,当我想检查我的待处理更改(在 TFS 2010 上)时,VS 突然失去了与 TFS 的连接并说(在团队资源管理器窗口中):HTTP 代码 404: 未找到".签入(或搁置)选项被禁用.当我尝试刷新源代码管理资源管理器窗口时,它会简要显示我的文件夹,然后再次关闭它(说它已与 TFS 断开连接).有趣的是,我仍然可以从 TFS 获取最新版本,甚至可以看到我的待定更改,但是当我尝试签入这些更改或搁置我的待定更改时,它会丢失连接.

I'm working with Visual Studio 2012 and when I wanted to check in my pending changes (on TFS 2010), all of sudden VS loses its connection with TFS and says (on the Team Explorer window): "HTTP Code 404: not found". The option to check in (or to shelve) is disabled. When I try to refresh the source control explorer window, it briefly shows my folders, but then closes it again (saying it was disconnected with TFS). The funny thing is that I still can get the latest version from TFS and even see my pending changes, but when I try to check these in or shelve my pending changes, it loses the connection.

我尝试在 Google 上寻找答案,但我找到的唯一答案是清除 C:\Users\\Local Settings\Application Data\Microsoft\Team Foundation\4.0\Cache 中的 TFS 缓存或使用使用命令devenv/ResetSkipPkgs"的 VS 命令提示符.

I tried looking for an answer on Google, but the only answer I found was clearing the TFS cache at C:\Users\\Local Settings\Application Data\Microsoft\Team Foundation\4.0\Cache or starting up VS with the VS command prompt with the command "devenv /ResetSkipPkgs".

我一无所知.提前致谢!

I'm clueless. Thanks in advance!

推荐答案

在运行 TFS 2010 的 Windows 7 客户端上,清除以下文件夹的内容:

On a Windows 7 client running against TFS 2010, clear the contents of the following folder:

%LOCALAPPDATA%\Microsoft\Team Foundation\3.0\Cache

在运行 TFS 2012 的 Windows 7 客户端上,清除以下文件夹的内容:

On a Windows 7 client running against TFS 2012, clear the contents of the following folder:

%LOCALAPPDATA%\Microsoft\Team Foundation\4.0\Cache

在运行 TFS 2013 的 Windows 7 客户端上,清除以下文件夹的内容:

On a Windows 7 client running against TFS 2013, clear the contents of the following folder:

%LOCALAPPDATA%\Microsoft\Team Foundation\5.0\Cache

这篇关于Visual Studio 2012 不断失去与 TFS 2010 的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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