This project is read-only.
4
Vote

Mrefbuilder.exe v2.6.10621.1 crash

description

I am enabling the documentprivates option of Sandcastle Help File Builder which I believe is required in order to automatically inherit documentation for explicit interface implementations. I am getting an unhandled exception in mrefbuilder.exe The reflection.org file is generated and is a complete well formed xml document so I am having trouble determining what the crash might be related to. The referenced assemblies are not obfuscated in any way to the best of my knowledge. I am referencing my own assemblies, .NET framework, Enterprise Library, Ajax Control Toolkit and CSLA.
 
Attached is the complete working directory from shfb as it stands at the time of the crash, that might provide some clues.
 
The stack trace is:
MrefBuilder (v2.6.10621.1)
Copyright c Microsoft 2006
Info: Loaded 9 assemblies for reflection and 30 dependency assemblies.

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
 at Microsoft.Ddue.Tools.Reflection.ReflectionUtilities.GetNamespace(TypeNode type)
 at Microsoft.Ddue.Tools.Reflection.NamespaceFilter.IsExposedMember(Member member)
 at Microsoft.Ddue.Tools.Reflection.RootFilter.IsExposedMember(Member member)
 at Microsoft.Ddue.Tools.Reflection.ApiFilter.IsExposedMember(Member member)
 at Microsoft.Ddue.Tools.Reflection.AllDocumentedFilter.IsExposedMember(Member member)
 at Microsoft.Ddue.Tools.ExtensionMethodAddIn.RecordExtensionMethods(XmlWriter writer, Object info)
 at Microsoft.Ddue.Tools.ManagedReflectionWriter.StartElementCallbacks(String name, Object info)
 at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespaces(NamespaceList spaces)
 at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitApis()
 at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)
C:\Code\Shared Projects\vs2010\Hsb\Hsb .NET Libraries - Sandcastle Documentation\Src\output\Working\GenerateRefInfo.proj(119,5): error MSB6006: "MRefBuilder.exe" exited with code -1073741819.
Last step completed in 00:00:10.1720

file attachments

comments

arcodevos wrote Oct 14, 2011 at 8:51 AM

Hi,
I have a similar problem.

Below the call stack

Generating reflection information...
[C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe]
MrefBuilder (v2.6.10621.1)
Copyright ¸ Microsoft 2006
Info: Loaded 11 assemblies for reflection and 41 dependency assemblies.

Unhandled Exception: System.ArgumentException: An item with the same key has already been added.
 at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
 at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespaces(NamespaceList spaces)
 at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitApis()
 at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)
C:\Users\Public\Documents\EZD.Documentation\Help\Working\GenerateRefInfo.proj(169,5): error MSB6006: "MRefBuilder.exe" exited with code -532462766.
Last step completed in 00:01:00.7015

EWoodruff wrote Oct 15, 2011 at 8:43 PM

arcodevos: Your problem is most likely a duplicate assembly passed in for processing or as a reference assembly and isn't related to this work item. If you are using SHFB, v1.9.3.2 had code added to prevent duplicate assemblies getting passed to MRefBuilder.

wrote Feb 22, 2013 at 1:39 AM