title: Using 32-bit dll on 64-bit system shows 0x8007000B Error
body: <p>I have to use a third party DLL in my application. The DLL is a 32-bit and the system I am using is 64-bit OS. </p>
  
  <p>I have Imported the 32-bit DLL in my DotNet application (framework-4.5) as below</p>
  
  <pre><code> [DllImport("Sample.dll",
    EntryPoint = "Add",
    CharSet = CharSet.Ansi,
    CallingConvention = CallingConvention.StdCall)]
    public static extern int Add(int iA, int iB);
  </code></pre>
  
  <p>In IIS 7.5 - I have set "Enable 32-bit Application" as "True".</p>
  
  <p>And also tried setting the Compiler Manager as - X86, x64 and Any CPU.</p>
  
  <p>But all the attempt results in same Error as</p>
  
  <pre><code> An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
  </code></pre>
  
  <p>How to resolve this Issue......</p>