title: An attempt was made to load a program with an incorrect format ERROR
body: <p>I am trying to create a webservice where the functions are performed by a 64 bit DLL. When I try to build this service i get the error "An attempt was made to load a program with an incorrect format."
  But when I run a 32 bit DLL it works fine.</p>
  
  <p>I am trying to run in a visual studio 2012 on .net 4 framework in C#</p>
  
  <p>I have tried changing the app pool settings in IIS and changed build platform target to any cpu. Cannot identify where the problem is coming from. Please provide you assistance. Thank you </p>