title: How to compile x64 asp.net website?
body: <p>I'm trying to compile (using <strong>Visual Studio</strong>) an <strong>ASP.Net website</strong> with the <strong>Chilkat library</strong>. The compilation fails due to this error:</p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>I've been told that this error occurs because of platform noncompliance. </p>
  
  <p>The weird thing is that although the compilation fails, the site works once accessed from a browser. My theory is that the <strong>IIS</strong> compilation uses csc.exe compiler from the Framework64 (64 bit) folder while the <strong>Visual Studio</strong> uses csc.exe compiler from the Framework (32 bit) folder. If this is acually it, <strong>how can I configure my Visual studio to run with the 64 bit compiler for ASP.Net sites?</strong></p>
  
  <p>This is my current development configuration:</p>
  
  <ul>
  <li>Windows 7 (x64).</li>
  <li>Visual Studio 2008 Pro (x86 of course...).</li>
  <li>Chilkat library (x64)</li>
  <li>IIS/Asp.net (x64).</li>
  </ul>