Obfuscating dll, and exe stops working?

G

Guest

VB exe loads one dll from a c# project. All works smoothly,
then I obfuscate exe, obfuscate dll, and exe cannot load dll any
more, this is the message:

TypeLoadException

Application::Run+0cf
a::Main+0xa

Any ideas?
 
G

Guest

Obfuscating involves changing the name of functions and variables. Calling
into a dll requires knowing the function name. See where I'm going with
this?
 
G

Guest

Obfuscating involves changing the name of functions and variables.
Calling
into a dll requires knowing the function name. See where I'm going with
this?

Yes, but the dll needs to be dotfuscated as well? What am I supposed to be
doing?
 
R

Robert Levy [MS]

your obfuscator probably has some configuration options. set it not to
obfuscate the names of anything that should be public.

--
Robert Levy
Program Manager
Mobile Devices Product Group
http://blogs.msdn.com/windowsmobile

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
D

Daniel Moth

What obfuscator are you using? With some products you can obfuscate the exe
and dll in the same step so the mangled method names of the dll are the ones
used by the mangled exe. If you are lucky your obfuscator supports that.
Otherwise you must not obfuscate all externally callable methods (e.g.
public and any non-publics accessed via reflection, protected methods your
exe inherits etc)

I would contact the vendor for the available options...

Cheers
Daniel
 
G

Guest

O.k., it's working. My mistake was that I did them seperately.
If we do them together (from one configuration file) it remembers
not to obfuscate what it needs from the library.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top