TFS数据库备份失败:XML文档中有错误-但是哪个文档? [英] TFS Database Backup Failed : There is an error in XML document - but which Doc?

查看:101
本文介绍了TFS数据库备份失败:XML文档中有错误-但是哪个文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的Nightly TFS 2012备份刚刚开始失败.直接通过TFS Express管理控制台运行时,它也会失败.

Our Nightly TFS 2012 backup has just started to fail. It also fails when run directly through TFS Express Administration Console.

以下错误实际上是指哪个文件?如果可以找到它,那么我应该能够修复缺少根元素"错误:)

Which file is the following error actually referring to? If I can find it then I should be able to fix the "Root element is missing" error :)

[13/08/2014 23:00:00] [Info] Full database backup job
[13/08/2014 23:00:00] [Info] Getting backup lock
[13/08/2014 23:00:05] [Error] 
Exception Message: There is an error in XML document (0, 0). (type   InvalidOperationException)
Exception Stack Trace:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at Microsoft.TeamFoundation.Admin.BackupSets.Load(String folder)
   at Microsoft.TeamFoundation.Admin.Jobs.FullDatabaseBackupJobExtension.Run(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime jobQueueTime, String& resultMessage)

Inner Exception Details:

Exception Message: Root element is missing. (type XmlException)
Exception Stack Trace:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBackupSets.Read7_BackupSets()

[13/08/2014 23:00:05] [Info] Full Backups Failed

谢谢.

推荐答案

查看配置了备份的文件夹.那里会有一个XML文件,记不清名称了,但是也许像BackupSets.xml

Look in the folder where your backups are configured to be placed. there will be an XML file there, can't remember the name, but maybe something like BackupSets.xml

这篇关于TFS数据库备份失败:XML文档中有错误-但是哪个文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆