I experienced a strange problem with TFS 2012. I spent a day before I figured it out. Just want to share my knowledge on the problem that might help other people.
It was working before with no problem for about 2 years. But suddenly, the builds started failing. When I checked the log ( ActivityLog.xml) I found that the issue was due to VersionControl.config and log said ” The cache file C:\Users\SXJ3619\AppData\Local\Microsoft\Team Foundation\4.0\Cache\VersionControl.config is not valid and cannot be loaded.
Please correct or delete the file.”
To resolve the issue, I went ahead and Deleting/renaming the file C:\Users\user.name\AppData\Local\Microsoft\Team Foundation\4.0\Cache\VersionControl.config solved the issue in my case.