0xd4d/de4dot — Issue #19: Member declared in another module and needs to be imported
Author: high6
Created: 2012-01-30 06:58:49+00:00
State: open

I am using version v1.5.0.3405 (latest today).
I get this exception when deobfuscating DS and then SA. I used both --keep-types and --dont-rename.

------------------------------------------------------------------------------
Stack trace:
at Mono.Cecil.MetadataBuilder.LookupToken(IMetadataTokenProvider provider) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 2012
at Mono.Cecil.Cil.CodeWriter.WriteOperand(Instruction instruction) in de4dot\cecil\Mono.Cecil.Cil\CodeWriter.cs:line 294
at Mono.Cecil.Cil.CodeWriter.WriteInstructions() in de4dot\cecil\Mono.Cecil.Cil\CodeWriter.cs:line 177
at Mono.Cecil.Cil.CodeWriter.WriteResolvedMethodBody(MethodDefinition method) in de4dot\cecil\Mono.Cecil.Cil\CodeWriter.cs:line 139
at Mono.Cecil.Cil.CodeWriter.WriteMethodBody(MethodDefinition method) in de4dot\cecil\Mono.Cecil.Cil\CodeWriter.cs:line 81
at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 1441
at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 1436
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 1275
at Mono.Cecil.MetadataBuilder.AddTypeDefs() in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 1245
at Mono.Cecil.MetadataBuilder.BuildTypes() in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 1086
at Mono.Cecil.MetadataBuilder.BuildModule() in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 862
at Mono.Cecil.MetadataBuilder.BuildMetadata() in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 838
at Mono.Cecil.ModuleWriter.b__0(MetadataBuilder builder, MetadataReader _) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 136
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read) in de4dot\cecil\Mono.Cecil\ModuleDefinition.cs:line 824
at Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 135
at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters) in de4dot\cecil\Mono.Cecil\AssemblyWriter.cs:line 111
at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters) in de4dot\cecil\Mono.Cecil\ModuleDefinition.cs:line 987
at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters) in de4dot\cecil\Mono.Cecil\ModuleDefinition.cs:line 976
at de4dot.code.AssemblyModule.save(String newFilename, Boolean updateMaxStack, IWriterListener writerListener) in de4dot\de4dot.code\AssemblyModule.cs:line 62
at de4dot.code.ObfuscatedFile.save() in de4dot\de4dot.code\ObfuscatedFile.cs:line 319
at de4dot.cui.FilesDeobfuscator.saveAllFiles(IEnumerable`1 allFiles) in de4dot\de4dot.cui\FilesDeobfuscator.cs:line 346
at de4dot.cui.FilesDeobfuscator.deobfuscateAll() in de4dot\de4dot.cui\FilesDeobfuscator.cs:line 116
at de4dot.cui.FilesDeobfuscator.doIt() in de4dot\de4dot.cui\FilesDeobfuscator.cs:line 75
at de4dot.cui.Program.main(String[] args) in de4dot\de4dot.cui\Program.cs:line 60

ERROR: Caught an exception:

------------------------------------------------------------------------------
Message:
Member 'System.Void á‚¥.á‚³á‚¤::á‚³()' is declared in another module and needs to be imported
Type:
System.ArgumentException
------------------------------------------------------------------------------