Error generating PDBs: Operation is not valid due to the current state of the object.

System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Reflector.CodeModel.Assembly.Module.ReadTypeFullyQualifiedName(String typeName, String assemblyReference)
   at Reflector.CodeModel.Assembly.Module.ReadTypeFullyQualifiedName(String fullyQualifiedName)
   at Reflector.CodeModel.Assembly.Module.ReadTypeFullyQualifiedName(ByteArrayReader reader)
   at Reflector.CodeModel.Assembly.CustomAttribute.ReadValue(ByteArrayReader reader, String namespaceName, String name)
   at Reflector.CodeModel.Assembly.CustomAttribute.ReadValue(ByteArrayReader reader, IType type)
   at Reflector.CodeModel.Assembly.CustomAttribute.get_Arguments()
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteCustomAttribute(ICustomAttribute value, IFormatter formatter)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteCustomAttributeList(IEnumerable value, IFormatter formatter)
   at Reflector.Application.Languages.IntermediateLanguage.LanguageWriter.WriteCustomAttributeList(ICustomAttributeProvider provider, IFormatter formatter)
   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)

Answers

Sign In or Register to comment.