zoukankan      html  css  js  c++  java
  • C:Windowssystem32configsystemprofileAppDataLocalMicrosoftTeam Foundation4.0CacheVersionControl.config is not valid and cannot be loaded.

    Recently, we experienced a strange problem with TFS 2010. We spent a few days before we 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 with the following error:

    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure. Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because of an unexpected logger failure. ---> Microsoft.TeamFoundation.VersionControl.Client.VersionControlException: The cache file C:Windowssystem32configsystemprofileAppDataLocalMicrosoftTeam Foundation3.0CacheVersionControl.config is not valid and cannot be loaded. Please correct or delete the file. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.TeamFoundation.VersionControl.Client.InternalCacheLoader.LoadConfig(InternalCache currentCache, Boolean dataDirectoryExists, InternalWorkspaceConflictInfo[]& conflictingWorkspaces) --- End of inner exception stack trace --- at Microsoft.TeamFoundation.VersionControl.Client.InternalCacheLoader.LoadConfig(InternalCache currentCache, Boolean dataDirectoryExists, InternalWorkspaceConflictInfo[]& conflictingWorkspaces)

    Deletion of the contents of Cache folder mentioned in the error message did not help.

    There was a coincidence of 2 things around that time:

    • the server was running out of free space in drive C:

    • our support people were installing Windows updates, including Service Pack 1 for TFS as well.

    Some of our projects were 32 bit, like Silverlight for example, that must be 32 bit, never 64 yet. However, our TFS server is 64 bit. In order to compile projects properly, the build definitions should specify either "Auto" (that runs 64 bit compilation as the TFS server is) or "X86" that enforces 32 bit compilation.

    Those ones that are X86 started failing all of a sudden with the error mentioned above.

    SOLUTION:

    Apparently, there is another location of Cache folder as well: C:WindowsSysWOW64configsystemprofileAppDataLocalMicrosoftTeam Foundation3.0Cache

    We deleted the contents of that folder, and everything started working properly.

    BTW: it has nothing to do with the /m switch. We tried it as well, but it did not help.

  • 相关阅读:
    【目录】循序渐进学.Net Core Web Api开发系列
    UML各种图总结-精华
    UML各种线的含义
    最新10大Python面试常问的问题,60%的人都不会
    Java—线程池ThreadPoolExecutor案例详解,高薪必备
    HashMap 的 7 种遍历方式与性能分析,高薪必学
    DelayQueue核心源码解析,Java面试必学
    Spring源码-循环依赖,Java架构师必学
    JAVA编程思想,去掉别扭的if,自注册策略模式优雅满足开闭原则,80%的人都不知道
    用Python实现植物大战僵尸游戏,很酷
  • 原文地址:https://www.cnblogs.com/fang-beny/p/3420912.html
Copyright © 2011-2022 走看看