VS2008 Woes - An attempt was made to load a program with an incorrect format.
Having recently re-imaged my PC, I attempted to load up a Visual Studio 2008 project that I haven’t touched since the build. It is a simple ASP.NET solution with three sub-projects. Attempting to build the application I received the following error:
Could not load file or assembly MyAssembly or one of its dependencies. An attempt was made to load a program with an incorrect format.
This one took me by surprise and the provided stack trace was of no use. Performing a quick google I came across the following post on Mark’s Blog of Random Thoughts: