I have an installer executable which is 32-bit that creates and invokes methods within a .NET assembly. This .NET assembly is targetted for 32-bit platform. Also, specifically it has a dependency on the .NET System.Data.dll. The problem is that when the System.Data.dll is loading during the run of my installer executable, the .NET CLR loads the 64-bit version of mscoree.dll, which I believe is a dependency for the System.Data.dll assembly. Obviously this causes a BadImageFormatException in my executable. My question now is that "How do I force the assembly loader in the CLR to load only 32-bit dependencies for the installer executable?"
View Complete Post