I just checked out a revision from Subversion to a new folder. Opened the solution and I get this when run:
Could not load file or assembly \'xxxx\' or one
The BadImageFormatException on an application running on IIS (not running from VS, since visual studio fixes the problem by using the build for "Any CPU") can be caused by the following:
The site is one a server that is x64 and the Application Pool's default setting for Enable 32-Bit Applications was False. and you have 32-bit assemblies
On the level of Visual Studio, the fix is: