2014-03-14 127 views
1

我想在VS 2012中使用敏捷模板 - 'MSF for Agile Software Development 6.2'创建一个新团队项目。我们使用连接到TFS 2012的VS2012(TFS数据库是sql server 2012)。我正在尝试在已经有其他七个团队项目的项目集合中创建新的团队项目。我得到的同时创造这个现有的内部集合团队项目出现以下错误(但如果我尝试新创建默认集合在一个团队项目,它的工作原理没有错误):无法在TFS中创建新的团队项目 - Tf30177:团队项目创建失败

*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. 

回答

0

的错误是明显的(对我来说):你在哪里试图创建新的项目已经确定的Microsoft.VSTS.Scheduling.OriginalEstimate领域的集合,它是一个整数类型。

一个解决方案可能是:导出Agile 6.2模板,搜索该字段,查找被定义为Double,还原为Integer,使用新名称导入修补模板,使用修补模板创建项目。

+0

嗨Guilio,你的答案完好无损!但现在在创建团队项目时出现另一个错误,您能否看到我对您帖子的回答?提前致谢。/Jimmy – Jimmy

1

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

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

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

<NetFx40_LegacySecurityPolicy enabled="false" /> 

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

+0

你在第一句话中提到了什么链接? –

相关问题