After deploying our huge distributed system to one of our clients we experience an unexpected error. During the investigation we replace the assembly causing the error with
First of all sorry about my English. I know this post is old but I have just the same problem, and I realize that in debug mode the build is made for 32 bit OS, and the release mode is for 64 bit by default. This make the DLL's made for 32 bit doesn't work in release. If you go to Project properties -> build you can choose the architecture you want. This works for me.