Can't Protect Assemblies

May 19, 2011 at 10:54 AM

When I try to protect the executable or assemblies for my project, using any of the preset levels, I get:

 

Failed!
Exception details :
System.NotSupportedException: Specified method is not supported.
   at Mono.Cecil.MetadataReader.GetExportedTypeScope(MetadataToken token)
   at Mono.Cecil.MetadataReader.ReadExportedTypes()
   at Mono.Cecil.ModuleDefinition.b__a(ModuleDefinition _, MetadataReader reader)
   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
   at Mono.Cecil.ModuleDefinition.get_ExportedTypes()
   at Mono.Cecil.ImmediateModuleReader.ReadModule(ModuleDefinition module)
   at Mono.Cecil.ModuleDefinition.FullLoad()
   at Confuser.Core.Marker.GetAssemblies(AssemblyDefinition asm, Settings setting, Dictionary`2 ret, EventHandler`1 err)
   at Confuser.Core.Marker.GetAssemblies(AssemblyDefinition asm, Settings setting, Dictionary`2 ret, EventHandler`1 err)
   at Confuser.Core.Marker.GetAssemblies(String src, Preset preset, Confuser cr, EventHandler`1 err)
   at Confuser.Core.Confuser.Initialize(StrongNameKeyPair& sn)
   at Confuser.Core.Confuser.Confuse(ConfuserParameter param)

 

 

Assemblies are .NET 3.5

Any help would be appreciated, as I can't get much from the error message :(

May 20, 2011 at 9:03 AM

I downloaded the source and tried debugging - the issue seems to be related the the saxon9api assembly that is referenced by one of the assemblies that I need to protect - issue raised