Buid定义:错误HRESULT E_FAIL已从调用COM组件返回

时间:2014-06-27 08:49:27

标签: tfs msbuild tfs2012 tfsbuild

当我向TFS添加新工作项时,构建定义会抛出异常,如下所示:

Exception Message: Error HRESULT E_FAIL has been returned from a call to a COM component. (type COMException)
Exception Stack Trace:    at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative.BeginDataStoreInit(IntPtr handle, String defaultCachePath, String instanceId, Int32 cacheVersion)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.Datastore.BeginDataStoreInit(String defaultCachePath, String instanceId, Int32 cacheVersion)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
   at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(String fullName, Object instance)
   at Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(Assembly assembly, String fullName)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetServiceT
   at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContextT
   at System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor)
   at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate)
   at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

我无法确定根本原因。如果可以,请帮助我!

1 个答案:

答案 0 :(得分:6)

出现这个问题的时候:
1.他们尝试创建一个新的工作项 - 用户故事,错误,任务等。
2.他们尝试编辑现有的查询 3.他们尝试从查询结果集中打开工作项 他们通过WI ID搜索工作项目。

请尝试两种方法来解决此问题:

  1. 重新启动计算机服务器以安装TFS
  2. 尝试删除路径喜欢的项目缓存:
  3. C:\ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplatesCache或
    C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplatesCache

    然后运行" devenv.exe / setup"重新构建缓存 开始 - >运行 - > C:\ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ devenv.exe / setup

    我遇到过这个问题。我使用#1

    解决了这个问题