I have a web site that references two assemblies that are 64-bit only. 32-bit versions of these assemblies do exist, however I want to run with the x64 versions. ASP.NET, running under IIS, has no trouble compiling or running the website. However VS.NET 2010 will not compile it. It hits "Unable to load referenced library 'c:\inetpub\wwwroot\eDocEngine\Bin\ABCpdfCE7.dll': An attempt was made to load a program with an incorrect format." and then produces hundreds of other errors that are bogus, like claiming "Type 'Generic.List' is not defined."
If I replace the 64-bit DLLs with the 32-bit versions, VS.NET is suddenly happy with all of my code.
Since I debug and test with IIS, not Cassini, I want to keep the 64 bit DLLs in place. Is there any way at all to accomplish this?
While searching I found that there are app.config settings that might help if I was using a web application. But I'm not; it's a web site. Anything I can do?