title: System.BadImageFormatException when running C# program
body: <p>I'm compiling a C# program on VS 2010 on Windows 7, then running the files (all taken from the build's bin\Debug directory) on another 32-bit machine.</p>
  
  <p>The files from the Debug directory also contain the Microsoft.Office.Project.Server.Library.dll file that this program relies on.</p>
  
  <p>On the VS 2010 project's build configuration, the platform is set to x86. Yet on the 32-bit machine it results in a System.BadImageFormatException.</p>
  
  <pre><code>Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 
  'Microsoft.Office.Project.Server.Library, Version=12.0.0.0, Culture=neutral, 
  PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The module was expected to 
  contain an assembly manifest. File name: 'Microsoft.Office.Project.Server.Library, 
  Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
  </code></pre>
  
  <p>What can the reason for this be?</p>