Menu ▾ ▴

ParseError

Support
2006-01-03
2013-04-16
  • Pierre Laurent

    Pierre Laurent - 2006-01-03

    Hi,

    I get an exception when I use NUnitDocumentor on     my computer with the .Net framework configured for France. With an english configuration, NUnitDocumentor works well. Here is the stack trace:

    Le format de la chaîne d'entrée est incorrect.
       at System.Number.ParseDouble(String s, NumberStyles style, NumberFormatInfo info)
       at System.Double.Parse(String s, NumberStyles style, IFormatProvider provider)
       at System.Double.Parse(String s)
       at NUnitDocumentor.TestCase.LoadFromTestResults(XmlReader aXMLReader)
       at NUnitDocumentor.TestResults.LoadFromTestResults(XmlReader aXMLReader)
       at NUnitDocumentor.TestResults.LoadFromFile(String aTestFilename)
       at NUnitDocumentor.NUnitDocumentor..ctor(String aTestFilename, String aXMLDocFilename, String aAssemblyFileName, TextWriter aOutputStream)
       at NUnitDocumentor.NUnitDocumentor.Main(String[] args)

    ShoGall

     
    • geoff bland

      geoff bland - 2006-02-02

      Thanks for that - I'll take a look at that. As my french is terrible I may need some help deciphering that error, would you be willing to help if I get stuck with this.

       
    • Pierre Laurent

      Pierre Laurent - 2006-02-14

      I think you should use:
      Double.Parse(s, CultureInfo.InvariantCulture)
      instead of:
      Double.Parse(s)

       
    • tamborddu

      tamborddu - 2007-11-27

      Hello
      An error occurs when i launch NUnitDocumentor.exe.
      Could you help me ?
      Thank you.

      D:\NUnitDocumentor_1_0_b>NUnitDocumentor.exe TestResult.xml UTMPSDK.xml Output.h
      tml UTMPSDK.dll
      The format of the file 'UTMPSDK.dll' is invalid.
         at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B
      oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass
      embly locationHint, StackCrawlMark& stackMark)
         at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean
      stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
         at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence security
      Evidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
         at System.Reflection.Assembly.LoadFrom(String assemblyFile)
         at XMLDocumentation.XMLDocumentation.FindAncestorName(XMLDocumentMemberType a
      Type, String AFullyQualifiedName)
         at XMLDocumentation.XMLDocumentation.Find(XMLDocumentMemberType aType, String
      AFullyQualifiedName)
         at NUnitDocumentor.TestSuite.StreamToHTMLBody(TextWriter aOutputStream, XMLDo
      cumentation aXMLDocumentation)
         at NUnitDocumentor.TestResults.StreamToHTMLBody(TextWriter aOutputStream, XML
      Documentation aXMLDocumentation)
         at NUnitDocumentor.TestElement.StreamToHTML(TextWriter aOutputStream, XMLDocu
      mentation aXMLDocumentation)
         at NUnitDocumentor.NUnitDocumentor..ctor(String aTestFilename, String aXMLDoc
      Filename, String aAssemblyFileName, TextWriter aOutputStream)
         at NUnitDocumentor.NUnitDocumentor.Main(String[] args)
      Press a key...

       
    • geoff bland

      geoff bland - 2007-12-19

      >The format of the file 'UTMPSDK.dll' is invalid.

      The documentor needs to read the assembly that it is going to document the test for. I guess that there is something wrong or corrupt with the assembly DLL.

       

Log in to post a comment.