title: IBM DB2 issue--System.BadImageFormatException: Could not load file or assembly IBM.DB2.DLL or one of its dependencies
body: <p>I am getting the above mentioned error message. I have made enough research and tried out various options but still no luck.</p>
  
  <p>Here arethe details below:</p>
  
  <pre><code>OS: Windows 7 64 bit version
  
      Visual studio version: 2013 Premium
  
     .NET framework version is : 4.0.30319
  
     ASP.NET version: 4.0.30319.34249
  
     IIS version: 7.0
  
     DB2 installed path: C:\Program Files (x86)\IBM
  
     DLL path: C:\Program Files (x86)\IBM\SQLLIB\BIN\netf40\IBM.DB2.dll
  
     DLL Version: 9.7.4.4
  </code></pre>
  
  <p>I have also changed my solution <strong>configuration manager platform to Any CPU</strong> and also I have changed the settings in the application pool by setting the property <strong>enable 32-bit application to True</strong>.</p>
  
  <p>But still am getting the same error. Is there any other workaround?</p>
  
  <p>Please help me with your suggestions.</p>