0

我有一个奇怪的问题。我试图通过团队项目管理器工具(http://teamprojectmanager.codeplex.com/)向我的 UserStory 类型添加一个新状态。在内联编辑器中,我添加了一个新的并单击确定。显然我做错了什么,因为它出错了。当我再次尝试打开它时,除了根 xml 标记之外的所有上下文都消失了。

自然,现在我的产品待办列表不起作用。它说

“TF400917:当前配置对此功能无效。在您更正配置之前,无法使用此功能。”

我可以加载积压的查询部分并查看所有故事和任务,但积压不会加载。我已经从 Visual Studio 下载了所有可用的模板并进行了比较,甚至上传了它们。没有什么能解决积压的问题。遗憾的是,我不确定它用于积压的模板是什么。我花了过去 3 天试图解决这个问题,但无济于事。我们在积压中并没有任何我们会因为失去而感到难过的东西,但是创建一个新的集合并重新开始是不可能的。

我不知道该怎么做。我能得到的任何帮助都会很棒。谢谢你。

哦,我从团队项目管理器中打开了日志,我认为这是它抛出的导致问题的错误:

TeamProjectManager Error: 0 :       [T01] [1/22/2016 3:36:22 PM] An unexpected exception occurred while importing work item types: Root element is missing.
System.Xml.XmlException: Root element is missing.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.LoadXml(String xml)
    at TeamProjectManager.Modules.WorkItemConfiguration.WorkItemConfigurationItemImportExport.ReplaceTeamProjectMacros(XmlDocument xml, IDictionary`2 macros) in C:\Users\jelled\Desktop\Code\TeamProjectManager\Main\TeamProjectManager.Modules.WorkItemConfiguration\WorkItemConfigurationItemImportExport.cs:line 284
    at TeamProjectManager.Modules.WorkItemConfiguration.WorkItemConfigurationItemImportExport.Import(ILogger logger, ApplicationTask task, Boolean setTaskProgress, WorkItemStore store, Dictionary`2 teamProjectsWithConfigurationItems, ImportOptions options) in C:\Users\jelled\Desktop\Code\TeamProjectManager\Main\TeamProjectManager.Modules.WorkItemConfiguration\WorkItemConfigurationItemImportExport.cs:line 31
    at TeamProjectManager.Modules.WorkItemConfiguration.WorkItemTypesViewModel.<>c__DisplayClass101_0.<PerformImport>b__1(Object sender, DoWorkEventArgs e) in C:\Users\jelled\Desktop\Code\TeamProjectManager\Main\TeamProjectManager.Modules.WorkItemConfiguration\WorkItemTypesViewModel.cs:line 616
    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
4

1 回答 1

0

万一有人偶然发现这个寻找答案,我修复了它。经过2天的挣扎,我修复了它。

在团队项目管理器中,打开 ProcessConfiguration xml 文件。查看所有已定义的待办事项状态。打开相应的 XML 文件,查看那里所有定义的状态。他们必须匹配。

我的具体解决方案:

打开 UserStory WIT,因为这是我记得在问题发生之前编辑的唯一 xml 文件。将定义的状态与下定义的状态进行比较。他们需要匹配。我在 UserStory 定义中列出了一个未在流程配置中列出的额外状态。

当我尝试上传时,仍然出现错误。但是,它给我的错误非常有帮助:

An error occurred while importing Process Configuration in Team Project "IMT": System.Web.Services.Protocols.SoapException: The following element contains an error: TaskBacklog/States. TF400536: This element defines the states for work items that appear on your backlog. The initial state value for each work item type must match one of the states defined in this element. The following work item types have an initial state that is not included in the defined states: 'Task'.
   at Microsoft.TeamFoundation.Server.WebAccess.Agile.WebServices.ProcessConfigurationService3.SetProjectProcessConfiguration(String projectUri, ProjectProcessConfiguration processConfiguration)
        System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The following element contains an error: TaskBacklog/States. TF400536: This element defines the states for work items that appear on your backlog. The initial state value for each work item type must match one of the states defined in this element. The following work item types have an initial state that is not included in the defined states: 'Task'.
   at Microsoft.TeamFoundation.Server.WebAccess.Agile.WebServices.ProcessConfigurationService3.SetProjectProcessConfiguration(String projectUri, ProjectProcessConfiguration processConfiguration)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationService3.SetProjectProcessConfiguration(String projectUri, ProjectProcessConfiguration processConfiguration)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProjectProcessConfigurationService.SetProcessConfiguration(String projectUri, ProjectProcessConfiguration processConfiguration)
   at TeamProjectManager.Modules.WorkItemConfiguration.WorkItemConfigurationItemImportExport.SetProcessConfiguration(Project project, WorkItemConfigurationItemType type, WorkItemConfigurationItem item) in C:\Users\jelled\Desktop\Code\TeamProjectManager\Main\TeamProjectManager.Modules.WorkItemConfiguration\WorkItemConfigurationItemImportExport.cs:line 537
   at TeamProjectManager.Modules.WorkItemConfiguration.WorkItemConfigurationItemImportExport.Import(ILogger logger, ApplicationTask task, Boolean setTaskProgress, WorkItemStore store, Dictionary`2 teamProjectsWithConfigurationItems, ImportOptions options) in C:\Users\jelled\Desktop\Code\TeamProjectManager\Main\TeamProjectManager.Modules.WorkItemConfiguration\WorkItemConfigurationItemImportExport.cs:line 119

失败的

第一行的最后是最有帮助的:以下工作项类型的初始状态不包括在定义的状态中:“任务”。

我用Task WIT重复了上述过程,它修复了它!我不知道 WIT 任务是如何不同步的……不记得更新了那个。那好吧。

于 2016-01-25T15:46:15.230 回答