title: Could not load file or assembly System.Data.SQLite - Web App deployed
body: <p>i know this is a duplicate question but i can't figure it out.</p>
  
  <p><strong>The Error Message:</strong></p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.Data.SQLite' or one of it's
    dependencies. An attempt was made to load a program with an incorrect
    format.</p>
  </blockquote>
  
  <p><strong>The Context:</strong>
  I am using VS2012, MVC4, .Net 4.5 to build a web application.
  The application uses an other solution which contains the SQLite.dll with copy local.
  I tried to deploy my web application on a Win2008 R2 server but i get the above error message.
  I compile for Any CPU my dev. enviroment is Win7 x64 and my server also x64</p>
  
  <p><strong>What i tried:</strong><br>
  <strong>1.</strong> Tried copying the msvcr100.dll to the deployed bin folder because it it a dependency of the SQLite</p>
  
  <p><strong>2.</strong> Tried to copy to the bin folder the SQLite.dll and the SQLite.Linq.dll from my dev. enviroment</p>
  
  <p><strong>3.</strong> Tried setting Enable 32 - Bit Applications" to false and also true for the app pool that i am using in IIS 7.5</p>
  
  <p><strong>4.</strong> Tried to restart IIS, added the Network Service and IIS user to have access to my folder.</p>
  
  <p><strong>5.</strong> Followed this post <a href="https://stackoverflow.com/questions/18181018/system-io-fileloadexception-could-not-load-file-or-assembly-system-data-sqlite">System.IO.FileLoadException: Could not load file or assembly &#39;System.Data.SQLite</a>, I use the version V1.0.88 which is now a pretty old version which i guess was cleaned, maybee i should try and  even older version?</p>