Search code examples
visual-studiotfstfs-2015tfvc

TFS Check-in oddity causes file to become a different file entirely


I'm trying to figure out the root cause of a strange TFS error we are seeing in our current instance. It wasn't noticed until after a server move, but I'm not sure if they're directly related, because the error seems to be showing up for check-ins about a week prior to the move, as well as all those following it.

We first noticed the problem when I tried to get latest, and got several errors indicating: "The downloaded file is corrupt. Please get the file again."

Upon looking into the error, we have noticed that starting as of a single check-in every code update has resulted in files being replaced with the contents of other files, ranging from project files to binary executable files (presumably assembly DLLs), rather than the expected content which is still present on our local development machines.

I don't have admin access to the servers myself, but am looking for ideas on possible causes and/or fixes for our team to investigate.


Solution

  • After weeks of searching, I finally found another mention of this sort of thing happening, along with a solution that appears to have worked.

    Clear the Application Tier cache.

    MSDN Archived Forums: TFS swapping contents of files