Which file give me this error?

Ask general questions here.
ppatrick
Posts: 6
Joined: Wed May 15, 2013 9:27 pm

Which file give me this error?

Post by ppatrick » Thu Jun 20, 2013 10:06 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Which file give me this error?

Post by Support Team » Wed Jun 26, 2013 3:44 pm

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)

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Which file give me this error?

Post by odklizec » Thu Jun 27, 2013 7:47 am

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 ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration