NullReferenceException When Trying to Generate PDB

Reflector is raising a NullReferenceException when I right click on the DLL under References and select "Enable Debugging" in Visual Studio 2017. The DLL is part of a third party vendor API. When trying to generate the PDB, the status gets to 28% and then goes to Failed with the error stack below. I am able to generate the PDBs for the other DLLs in the API. I was able to generate the PDB for the problem DLL in the past but now it is not working. My environment has not changed since it stopped working except for Windows updates. I am running .Net Reflector Pro 10.1.6.1524.

Has anyone else run into this problem? Any suggestion on things to check or possible causes/fixes would be appreciated.

Thanks.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Reflector.CodeModel.Assembly.TableReader.get_Item(Int32 tableType)
   at Reflector.CodeModel.Assembly.Module.DecodeFieldPointerTable()
   at Reflector.CodeModel.Assembly.Module.DecodeMetaData()
   at Reflector.CodeModel.Assembly.Module.ReadCustomAttribute(Int32 constructor, Int32 value)
   at Reflector.CodeModel.Assembly.Module.DecodeAssemblyCustomAttributes()
   at Reflector.CodeModel.Assembly.Assembly.LoadAttributesIfNeeded()
   at Reflector.CodeModel.Assembly.Assembly.get_TypeForwardedTo()
   at Reflector.CodeModel.Assembly.Equality.ResolveTypeReference(ITypeReference typeReference, HashSet`1 alreadyChecked)
   at Reflector.CodeModel.Assembly.TypeReference.Resolve(HashSet`1 alreadyChecked)
   at Reflector.CodeModel.Assembly.MethodReference.Resolve()
   at Reflector.CodeModel.Assembly.MethodReference.TypeCollection.get_Item(Int32 index)
   at Reflector.CodeModel.Memory.GenericArgument.Resolve()
   at Reflector.CodeModel.Memory.InstantiateType.BindGenericType(IType type, IGenericArgumentProvider genericType, IGenericArgumentProvider genericMethod)
   at Reflector.CodeModel.Memory.InstantiateType.BindGenericType(IType type, IGenericArgumentProvider genericType, IGenericArgumentProvider genericMethod)
   at Reflector.CodeModel.Memory.MethodInstanceReference.get_ReturnType()
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteMethodReference(IMethodReference methodReference, IFormatter formatter)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteInstruction(IMethodDeclaration value, IInstruction instruction, IVariableDeclarationCollection localVariables, Dictionary`2 variableTable)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteMethodBody(IMethodDeclaration value)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteMethodDeclaration(IMethodDeclaration value)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteTypeDeclaration(ITypeDeclaration value)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteNamespace(INamespace value)
   at RedGate.Reflector.Debugger.Engine.Reflector.Document.Decompile()
   at RedGate.Reflector.Debugger.Engine.Reflector.Document.GetContent()
   at RedGate.Reflector.VsPackage.Engine.Engine.DoGenerationOfSourceAndPossiblyPdb(String assemblyFile, String targetPdb, IReflectorSession reflectorSession, Language reflectorLanguage, LanguageVersion languageVersion, Boolean usePreviewEngine, EventHandler`1 progressUpdated, CancelTest cancelTest, Action`1 finishAction, PdbRequirement producePdb, ITypeDeclaration typeDecl, String originalAssemblyFile)
   at RedGate.Reflector.VsPackage.Engine.Engine.GenerateTheCodeAndPossiblyThePdb(AssemblyReference peFile, IDictionary`2 reverseRegenerateMap, IReflectorSession reflectorSession, FrameworkLanguageSelection selection, CancellationFlag cancellationFlag, EventHandler`1 progressUpdated, PdbRequirement fullPdb)
   at RedGate.Reflector.VsPackage.Gui.DecompilationProgresser.DecompileOne(AssemblyReference assemblyLocal, FrameworkLanguageSelection selection)
Sign In or Register to comment.