无法在TFS中创建新的团队项目 - Tf30177:团队项目创建失败

时间:2014-03-14 07:10:24

标签: tfs

我正在尝试使用敏捷模板在VS 2012中创建一个新的团队项目 - ' MSF for Agile Software Development 6.2'。我们使用连接到TFS 2012的VS2012(TFS数据库是sql server 2012)。我正在尝试在已经有其他七个团队项目的项目集合中创建新的团队项目。在现有集合中创建团队项目时出现以下错误(但如果我尝试在默认集合中创建团队项目,则可以正常工作):

*Tf30177: Team Project Creation Failed.
TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed during task WITs from group WorkItemTracking.  
Explanation 
Plugin error text: “Work item type validation failed. The operation cannot be completed.”  
User Action 
Contact your Team Foundation Server administrator.*

当我查看项目创建日志时,我有这个例外细节:

*2014-03-10T13:55:45 | Module: Work Item Tracking | Thread: 16 | Uploading work item type from file 'C:\Users\<user>\AppData\Local\Temp\3\TPW_tmpCF50.tmp\WorkItem Tracking\TypeDefinitions\Task.xml'...
---begin Exception entry---
Time: 2014-03-10T13:55:45
Module: Work Item Tracking
Exception Message: TF26038: Field type for Microsoft.VSTS.Scheduling.OriginalEstimate does not match the existing type. It was Integer, but now is Double. (type ProvisionValidationException)
Exception Stack Trace:    at Microsoft.TeamFoundation.WorkItemTracking.Client.ClientMetadataProvisioningHelper.ThrowValidationException(String message)
   at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageField.Update(XmlElement fieldElement)
   at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageFieldCollection.ProcessFieldDefinitions(UpdatePackageRuleContext context, XmlElement fieldsNode, UpdatePackage batch)
   at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.WITImporter.Translate()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.Submit(ActionType action, Snapshot snapshot, Int32 projectId, WITImporter importer)
--- end Exception entry ---*

Could anyone please suggest how to solve this issue? Please let me know if you need more deitails on this error.

2 个答案:

答案 0 :(得分:1)

最后它奏效了。我编辑了其中一个链接中提到的devenv.exe.config文件。我在配置文件中修改了以下区域:

<runtime>
    <NetFx40_LegacySecurityPolicy enabled="true" />
</runtime>

禁用CAS安全策略使其工作;即,我使用 false 标志更新了配置文件。

<NetFx40_LegacySecurityPolicy enabled="false" />

现在我可以毫无错误地创建团队项目了!

答案 1 :(得分:0)

错误很明显(对我而言):您尝试创建新项目的Collection已经定义了Microsoft.VSTS.Scheduling.OriginalEstimate字段,它是一个Integer类型。

一种解决方案可能是:导出Agile 6.2模板,搜索该字段,找到被定义为Double的文件,恢复为Integer,使用新名称导入修补模板,使用修补模板创建项目。