Sometimes (and that's what is baffling me the most)
an exception is thrown while building my
documentation via the NDoc gui.
It always happens for the same file (while building a
html file called Write_overloads.html), here's the
error message:
Die Länge darf nicht kleiner als 0 (null) sein.
Parametername: length
Exception: NDoc.Core.DocumenterException
Die Länge darf nicht kleiner als 0 (null) sein.
Parametername: length
Exception: System.ArgumentOutOfRangeException
Die Länge darf nicht kleiner als 0 (null) sein.
Parametername: length
Exception: NDoc.Core.DocumenterException
bei NDoc.Documenter.Msdn2.Msdn2Documenter.Build
(Project _project) in F:\Projekte\NDoc2005
\src\Documenter\Msdn2\Msdn2Documenter.cs:Zeile 582.
bei NDoc.Gui.BuildWorker.ThreadProc() in
F:\Projekte\NDoc2005\src\Gui\BuildWorker.cs:Zeile 88.
Exception: System.ArgumentOutOfRangeException
bei System.String.InternalSubStringWithChecks
(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
bei System.String.Substring(Int32 startIndex,
Int32 length)
bei
NDoc.Documenter.Msdn2.Msdn2HtmlUtilitiesV20.FixLocalUr
l(String line, String href, String filePath, Int32
index) in F:\Projekte\NDoc2005\src\Documenter\Msdn2
\Msdn2HtmlUtilitiesV20.cs:Zeile 163.
bei
NDoc.Documenter.Msdn2.Msdn2HtmlUtilitiesV20.UpdateHtml
Hrefs(Project project, String fullPath, Encoding
encoding, Msdn2Documenter documentor) in
F:\Projekte\NDoc2005\src\Documenter\Msdn2
\Msdn2HtmlUtilitiesV20.cs:Zeile 312.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.TransformAndWrit
eResult(String transformName, XsltArgumentList
arguments, String filename) in F:\Projekte\NDoc2005
\src\Documenter\Msdn2\Msdn2Documenter.cs:Zeile 1626.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.MakeHtmlForMetho
ds(WhichType whichType, XmlNode typeNode) in
F:\Projekte\NDoc2005\src\Documenter\Msdn2
\Msdn2Documenter.cs:Zeile 1245.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.MakeHtmlForInter
faceOrClassOrStructure(WhichType whichType, XmlNode
typeNode) in F:\Projekte\NDoc2005\src\Documenter\Msdn2
\Msdn2Documenter.cs:Zeile 938.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.MakeHtmlForTypes
(String namespaceName) in F:\Projekte\NDoc2005
\src\Documenter\Msdn2\Msdn2Documenter.cs:Zeile 862.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.MakeHtmlForAssem
bliesSorted() in F:\Projekte\NDoc2005
\src\Documenter\Msdn2\Msdn2Documenter.cs:Zeile 740.
bei
NDoc.Documenter.Msdn2.Msdn2Documenter.MakeHtmlForAssem
blies() in F:\Projekte\NDoc2005\src\Documenter\Msdn2
\Msdn2Documenter.cs:Zeile 693.
bei NDoc.Documenter.Msdn2.Msdn2Documenter.Build
(Project _project) in F:\Projekte\NDoc2005
\src\Documenter\Msdn2\Msdn2Documenter.cs:Zeile 462.
I was able to step it through to the point where it
happens, it's because a </a> tag is missing in the
file, but don't ask me why it's missing and why it's
not missing all the time. There are days when the
exception get's thrown all the time and then there
are days when it happens at the beginning a couple of
times and then it magically dissappears and
everything goes right.
System specs: WinXP SP2, VS2005 German, latest
NDoc2005 source
Regards
HB