yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

SelfHosted WebAPI project - System.EntryPointNotFoundException #569

Open elector-zz opened 8 years ago

elector-zz commented 8 years ago

Hi

Using UI v. 1.0.0, no packer

I have a WinForms application self hosting a WebAPI server and I confuse the exe and two dlls. I use the Normal preset and nothing else. When trying to run the exe I get an exception and the log says: System.EntryPointNotFoundException: The following errors occurred while attempting to load the app.

Seems that it cannot find the Startup class Confirguration method to start the web server.

Can you please help? I am totally new to ConfuserEx.

Thank you

LennardF1989 commented 7 years ago

Most likely it really expects to find the Configuration-method by means of Reflection, so exclude it from obfuscation.

elector-zz commented 7 years ago

I am not sure how to exclude it when it is a part of the exe file I am obfuscating. The Web API is self hosted in an executable.

SlowLogicBoy commented 7 years ago

https://github.com/yck1509/ConfuserEx/wiki/Declarative-Obfuscation

[Obfuscation(Exclude = true)]