Original address: Http://yanwushu.sinaapp.com/tfs_wersioncontrol_config_file_not_valid/
A problem may occur when you use TFS for source control: The cache file Wersioncontrol.config is invalid. This in turn causes the project to not connect to the TFS server. This article describes a solution for this problem.
This can be caused by a number of reasons, such as a computer's abnormal shutdown, Visual studio unexpectedly shutting down, and so on.
The workaround for this problem is to remove the Versioncontrol.config file under the C:\Users\peng\AppData\Local\Microsoft\Team Foundation\4.0\cache directory and reopen the solution.
In general, there will be an exception log when the VisualStudio version Management Control tool has an exception. Therefore, when you encounter a similar problem, you should carefully review the hints given by VisualStudio (which usually tells you to view the log file), and the log file may give you a solution to this problem.
TFS Cache file Wersioncontrol.config Invalid