I get
"An attempt was made to load a program with an incorrect format."
exception when I compile my code in release, in debug all works fine.
Debug and release has the same configuration: main project was compiled in x86, some referenced projects in AnyCPU and my problem.dll in x86 too. I have to compile it in x86 becouse problem.dll use external 32 bit dlls.
How can I solve this problem?