Search
Close this search box.

How to clear Visual Studio Team Explorer Cache

Switching between Team Project Collections sometimes messes up documents and reports and gives a red X next to both these artefacts in Team Explorer. I have run into this several times in the last couple of months and clearing the Visual Studio Team Explorer Cache seems to resolve the issue.

If you are sure you are set up with all the right permissions then the first step troubleshooting step is tearing down the Visual Studio Team Explorer cache. Please try refresh the visual studio local cache using the steps below,

1. Close Visual Studio if it’s open

2. Delete the Team Foundation cache on the client (be careful, delete the content of the folder only, not the cache folder itself)

C:\Users\<yourusername>\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache
C:\Users\<yourusername>\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache

You can additionally delete the Team Web Access Cache folder (the location for this can be found in the TFS Web.config)

(on 64-bit machine) C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web

In the web.config you’ll find something similar:

<appSettings>
    <!-- Directory path where cache is stored. –>

    <add key="WorkItemTrackingCacheRoot" value="C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v10.0.30319"/>

    <!--<add key="DetailedRequestTrace" value="true" />-->
  </appSettings>

3. Start Visual Studio again

Please also refer to this blog post from Bryan Krieger (PM – Visual Studio TFS) with more tips on how to troubleshoot this, http://blogs.msdn.com/b/bkrieger/archive/2010/04/27/visual-studio-client-connection-issues-after-upgrading-to-tfs-2010.aspx 

Enjoy 

Posted on Sunday, August 19, 2012 11:29 AM TFS2010 | Back to top

This article is part of the GWB Archives. Original Author: TARUN ARORA

Related Posts