Why and how to clear TFS client cache?

**** Update on February, 9, 2013 *****

Sometimes there are errors like “Cannot find team project” or you can’t create a project because duplicate name  despite of you don’t have one or you are not connected to that one that have this project, so all you have to do just clear the cache example of the error that could occur the following error

Cache Error

For example I clear my cache from the following path

For Visual Studio cache:

Run from Window Run


Or open the following path

C:\Users\MRadwan\Local Settings\Application Data\Microsoft\Team Foundation\5.0\Cache

This will cause your client Tool  to download a fresh copy of the cache the next time it deals with the server, and everything  will going well.

We can also force a rebuild of the cache on each client computer the next time it connects to a team project collection by using the

witadmin rebuildcache 

 For MTM cache


For server cache

Run from Window Run


Or open the following path

C:\ProgramData\Microsoft\Team Foundation\Web Access\

Sometimes also you need to clear the following path

C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_tfs_data

Delete the cache files and to make sure we have refreshed everything, we can reset the IIS.


About these ads

6 thoughts on “Why and how to clear TFS client cache?

  1. thnx !! I could’nt recreate a TFS project after deleting it (we created it first with the wrong process template) but now it works !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s