Page 1 of 1

Which file give me this error?

Posted: Thu Jun 20, 2013 10:06 pm
by ppatrick
Hi,

I received the error below after opening a solution file. First I thought it was the test suite file. However, my test suite file doesn't have line 1880. It only has about 900 lines. Could you please tell me which file has this problem? So I can try to fix it.

System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1880, position 2.
---STACKTRACE---
System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1880, position 2.
System.Xml.XmlTextReaderImpl.Throw(Exception e)+0x27
System.Xml.XmlTextReaderImpl.Throw(String res,String[] args)+0x29
System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName,Int32 startOffset,Int32& colonPos)+0x0
System.Xml.XmlTextReaderImpl.ParseElement()+0x1a9
System.Xml.XmlTextReaderImpl.ParseElementContent()+0x16f
System.Xml.XmlTextReaderImpl.Read()+0x77
System.Xml.XmlTextReader.Read()+0x0
System.Xml.XmlReader.InternalReadContentAsString()+0xa3
System.Xml.XmlReader.ReadContentAsString()+0x14
System.Xml.XmlReader.ReadElementContentAsString()+0xd
Ranorex.Core.Testing.TestSuite+TestSuiteXmlReader..ctor(String testSuiteFilePath,Boolean readreferencedAssemblies)+0x98
Ranorex.Addins.RxTestSuiteAutostartCommand.RefreshReferencedAssemblies()+0x55
Ranorex.Addins.RxUpdateReferencesMonitor.FileService_SolutionInitCompleted(Object sender,EventArgs e)+0x0
System.EventHandler.Invoke(Object sender,EventArgs e)+0xffffffff
ICSharpCode.SharpDevelop.FileService.OnSolutionInitCompleted()+0x7
ICSharpCode.SharpDevelop.FileService.<ParserServiceLoadSolutionProjectsThreadEnded>b__3()+0x29


Thanks,
Patrick

Re: Which file give me this error?

Posted: Wed Jun 26, 2013 3:44 pm
by Support Team
Hello,

It could be the that the Repository file of your 'Test Suite' contains an illegal character.
Could you please verify if the '<' is used within a name of an item?

Do you have any issues if you try to run other tests?

Regards,
Markus (T)

Re: Which file give me this error?

Posted: Thu Jun 27, 2013 7:47 am
by odklizec
Hi Patrick,

Do you use SVN? Then check your project source files. I think one of them (I guess rxtst, but maybe also some others) is in conflicted state. I experienced exactly the same problem today and it's definitely caused by conflicted source files ;)