This is the first time I'm working with a tofusator. My project is written in C # and .NET 3.5, it has a main program and some plugins; this is a piece of code that loads plugins:
Assembly asm = Assembly.LoadFile( pluginPath );
foreach( Type type in asm.GetTypes() )
{
...
}
Now the problem is that if I was not confused, everything is fine, but when I use dotfuscator asm.GetTypes(), throw a ReflectionTypeLoadException which says
The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I worked for several hours with no results. Thanks in advance.
EDIT: After some research and debugging, I think this is a problem in the manifest because the reflection cannot see (or load) the types inside the assembly. I discovered obfuscation with Reflector, but everything seems fine.