How to compile x64 asp.net website?

Posted by Eran Betzalel on Stack Overflow See other posts from Stack Overflow or by Eran Betzalel
Published on 2010-04-07T23:57:05Z Indexed on 2010/04/08 0:13 UTC
Read the original article Hit count: 1051

Filed under:
|
|
|

I'm trying to compile (using Visual Studio) an ASP.Net website with the Chilkat library. The compilation fails due to this error:

Could not load file or assembly 'ChilkatDotNet2, Version=9.0.8.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I've been told that this error occurs because of platform noncompliance.

The weird thing is that although the compilation fails, the site works once accessed from a browser. My theory is that the IIS compilation uses csc.exe compiler from the Framework64 (64 bit) folder while the Visual Studio uses csc.exe compiler from the Framework (32 bit) folder. If this is acually it, how can I configure my Visual studio to run with the 64 bit compiler for ASP.Net sites?

This is my current development configuration:

  • Windows 7 (x64).
  • Visual Studio 2008 Pro (x86 of course...).
  • Chilkat library (x64)
  • IIS/Asp.net (x64).

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about x64