I have a library containing an arcmap extension that I would like to protect using SofPro's PC Guard for .NET.
Since Sofpro won't let me protect my dll unless I also protect arcmap.exe, I changed my dll so that it gets built as an Exe. (I added a Main simply prints "hello world".)
I'm able to register the exe using EsriRegasm and have verified that arcmap loads the extension from the exe.
However, after applying SofPro protection to the exe, EsriRegAsm refuses to register it.
"Registration failed, Could not load exe or one of its dependencies. The module was expected to contain an assembly manifest".
I've tried, as suggested, turning off "Hide executable object names", and also turned off data or code section encryption.