Unhandled IndexOutOfRangeException when DocumentPrivates is True

Topics: Developer Forum
Mar 1, 2007 at 5:49 PM
I get the following exception when setting DocumentPrivates = True. I've got three assemblies with three dependency folders and it fails. I also tried a single assembly with no dependencies and it still fails. Any ideas? If DocumentPrivates = False then all works fine.

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Ddue.Tools.Reflection.OrcasNamer.WriteProperty(Property property, TextWriter writer)
at Microsoft.Ddue.Tools.Reflection.OrcasNamer.GetMemberName(Member member)
at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteTypeElements(TypeNode type)
at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteType(TypeNode type)
at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitType(TypeNode type)
at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitTypes(TypeNodeList types)
at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespace(Namespace space)
at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNamespaces(NamespaceList spaces)
at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespaces(NamespaceList spaces)
at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitApis()
at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)

BUILD FAILED: Unexpected error in last build step. See output above for details.

Mar 1, 2007 at 7:12 PM
This is an error in MRefBuilder. I think I've seen it reported before in the MSDN Documentation Forum. You might post there to see if it has been fixed in the February CTP.