Geeks With Blogs

News




View Tarun Arora's profile on LinkedIn

profile for Tarun Arora at Stack Overflow, Q&A for professional and enthusiast programmers

Tarun Arora - Visual Studio ALM MVP ALM, Agile, Automation, Performance Testing, Software QA, Cloud, ...

 

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.

TFS_Red Cross next to documents and reports

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 In love

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


Comments on this post: How to clear Visual Studio Team Explorer Cache

# re: How to clear Visual Studio Team Explorer Cache
Requesting Gravatar...
I kept getting "HTTP code 404: Not Found" in VS2012 connecting to tfs2010. I could connect to the server, browse team projects to choose in the "Connect to Team Foundation Server" window, but then i would see the 404 in team explorer after it tried to connect and nothing would be available. Deleting this cache fixed my issue! Thanks!
Left by felickz on Oct 23, 2012 2:56 PM

# re: How to clear Visual Studio Team Explorer Cache
Requesting Gravatar...
Use %LocalAppData%\Microsoft\Team Foundation\ path instead, it's more generic and OS version independent.
Left by Alexander M. Batishchev on Nov 11, 2012 9:14 AM

comments powered by Disqus

Copyright © Tarun Arora [Microsoft MVP] | Powered by: GeeksWithBlogs.net | Join free