I have a unusual problem throwing an exception \"An attempt was made to load a program with an incorrect format\" error? I have two identical websites on the same IIS server
Found the problem - The solution is in the way that the two AppPools are configured:
Changing BetaAppPool to set Enable 32-Bit applications to TRUE has fixed this problem.
Solution was found by @Rick on this question: C# Entity Framework 4 Common Language Runtime detected an invalid program error?