2014-03-14 131 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

你在第一句話中提到了什麼鏈接? –

相關問題