I have a web application deployment project setup for an ASP.NET application with Visual Studio 2008. I'm compiling on an x64 system, and the ASP.NET application includes several Managed C++ assemblies that are compiled for x64.
When the deployment project is compiled, the following error occurs:
ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'ClearCanvas.Dicom.Codec.Jpeg, Version=1.0.3827.17909, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
If I exclude the x64 assemblies from the build, everything runs fine. Is it possible to use a web deployment project with assemblies compiled for x64?
Note that I also noticed a potential reference to this issue on this page. The suggested fix on the page does not resolve the issue and doesn't seem related.