CruiseControl.Net抱怨xml [英] CruiseControl.Net complaining about xml
本文介绍了CruiseControl.Net抱怨xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我继承了一个失败的构建的现有项目。我可以在ccnet.log文件中看到异常:
I inherited an existing project with a failing build. I can see the exception in the ccnet.log file:
Exception: System.Xml.XmlException: Name cannot begin with the '%' character, hexadecimal value 0x25. Line 17, position 100.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr)
at ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(XmlReader reader, Boolean defattr)
at ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(String xml)
任何想法哪个xml文件这是,我怎么能解决它?
Any idea which xml file this is and how can I fix it? The annoying thing is that the build turns red, but it is not being added to the recent builds web page.
编辑让我澄清一下:
推荐答案
这是在构建结束时发生的,可能是当它试图生成构建报告xml或其他
最后设法找到问题:构建使用Nant来完成大部分任务,并且Nant配置不正确:
Finally managed to find the issue: the build used Nant to do most of the task and Nant was configured incorrectly:
- 配置为记录所有调试信息
- log4net已配置为在nant.exe.config 中记录括号中的内容
- It was configured to log all the debug information
- log4net was configured to log something in <> brackets in nant.exe.config
因此,当ccnet尝试将nant输出与构建输出合并时,构建失败。
So the build was failing when ccnet tried to merge nant output with build output.
非常感谢大家的帮助!
这篇关于CruiseControl.Net抱怨xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文