TFS 2012 实验室中心错误 - 生成 XML 文档时出错 [英] TFS 2012 Lab Center Error - There was an error generating the XML document
问题描述
我正在 TFS 2012 实验室环境上进行实验以设置 BDT 工作流程.
I'm doing experiment on TFS 2012 Lab Environments to setup BDT workflow.
当我在实验室中心设置标准环境并成功测试 BDT 时,我尝试使用现有环境使用的现有 VM 设置新环境.
When I setup standard environments and test BDT successfully on Lab Center, I try to setup a new environments with the existing VMs which has been used by existing environments.
所以我必须先删除现有环境才能释放虚拟机.但删除后,实验室中心打开,出现以下异常:
So I have to delete the existing environments to release the VMs first. But after the deletion, the lab center is opened with the following exception:
服务器无法处理请求.---> 生成 XML 文档时出错.---> 索引超出范围.必须是非负的并且小于集合的大小.参数名称:index
这里,但是还没解决.
能不能给点建议?
推荐答案
经过实验,按照帖子:这个问题好像是TFS的bug导致的,它没有完全删除环境,留下了一些脏数据.
After experiments, the issue is resolved by following the suggestion in the post: The issue seems caused by the bug of TFS that it is not deleted the environments totally and some dirty data is left.
连接到 TFS 数据库
Connect to TFS db
运行以下sql检查Env数据:
Run the following sql to check the Env data:
从 LabEnvironment 文件中选择 le.LabEnvironmentId where le.PartitionId = 1 And NOT EXISTS(选择 * From LabSystem ls where ls.LabEnvironmentId = le.LabEnvironmentId AND ls.PartitionId = 1)
- 最后运行以下 sql 删除无效的环境数据:
从 LabEnvironment 文件中选择 le.LabEnvironmentId where le.PartitionId = 1 And NOT EXISTS(选择 * From LabSystem ls where ls.LabEnvironmentId = le.LabEnvironmentId AND ls.PartitionId = 1)
我已经在我的 TFS Evn 上进行了测试,并且可以正常工作.
I have tested on my TFS Evn and it works.
注意:在运行sql脚本之前,请仔细细化.
这篇关于TFS 2012 实验室中心错误 - 生成 XML 文档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!