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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
I think you should use:
Double.Parse(s, CultureInfo.InvariantCulture)
instead of:
Double.Parse(s)
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...
>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.