I need to create an MVC 3.0 site and customize x64. I had a problem creating my MVC 3.0 site with Target platform installed for x64 and MvcBuildViews installed in True. Everything builds fine until it tries to compile the views. If I installed the Target platform in AnyCPU, everything will compile, but when it is installed on x64, I get this error:
Failed to load file or assembly "Mvc64Bit" or one of its dependencies. An attempt was made to download a program with the wrong format.
This can be easily recreated by creating an empty MVC 3.0 project, unloading the project, editing the project file to set the MvcBuildViews element to true, reloading the project, changing the Target Platform in the project build properties to x64, and then execute.
I could not find any of the above errors on the Internet, since it concerns mismatched DLLs (one x32, one x64), but this does not make sense if the view assembly mechanism is not 32 bits or something else.
Any hints to point me in the right direction would be GREAT appreciated. Thanks for reading!
source
share