附加定义:对COM组件的调用已返回错误HRESULT E_FAIL [英] Buid definition: Error HRESULT E_FAIL has been returned from a call to a COM component

查看:98
本文介绍了附加定义:对COM组件的调用已返回错误HRESULT E_FAIL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向TFS中添加新工作项时,构建定义会引发如下异常:

When I add a new work item to TFS, build definition throw a exception as below:

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)

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

I cannot dertermine the root cause. Please help me if you can!

推荐答案

在以下情况下会出现此问题:
1.他们尝试创建一个新的工作项-用户故事,错误,任务等.
2.他们尝试编辑现有查询.
3.他们尝试从查询结果集中打开工作项.
4.他们通过WI ID搜索工作项.

This issue arises when:
1. They try to create a new work item – user story, bug, task etc.
2. They try to edit an existing query.
3. They try to open a work item from a query result set.
4. They search for a work item by the WI ID.

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

Please try two ways to resolve this problem:

  1. 重新启动计算机服务器以安装TFS
  2. 尝试删除路径如下的项目缓存:

C:\ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplatesCache或
C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplatesCache

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache or
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

Then run "devenv.exe /setup" to re-build the cache.
Start—>Run—> C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /setup

我已经遇到了问题.我已经通过使用#1解决了它

I've faced with the problem. I've resolved it by use #1

这篇关于附加定义:对COM组件的调用已返回错误HRESULT E_FAIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆