Tuesday, January 15, 2013

TFS: The download file is corrupt. Please get the file again.


We got  "The download file is corrupt. Please get the file again." on our build machine.
At the same time when a user tries to see history and chooses on some file to compare to Previous version - it shows completely different file.

Spooky, right? Do not panic!

First, locate problematic chageset, find it in Team Web Access and make sure comparison to previous version looks good there. If it does not - panic, this post will not help you.

If it DOES look allright in TWA - problem is caching. Most likely on server side, but neat to cleanup both.

1. Cleanup server cache (TFS 2012)
Go to your application tier machine and delete whatever is under:
C:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services\_tfs_data
if scared to delete - rename the folder. The folder with the same name will be created immidiately again by application tier anyway, then you can delete the old one. If files are in use - stop tfs server, perform deletion, start tfs server.

2. Cleanup client cache
Delete all under:
C:\Users\<yourusername>\Local Settings\Application Data\Microsoft\Team Foundation\x.0\Cache

Voila :)

2 comments:

  1. Windows 7
    C:\Users\yourusername\AppData\Local\Microsoft\Team Foundation

    ReplyDelete
  2. you made my day....

    ReplyDelete