title: x86 and x64 System.Data.SQLite issue
body: <p>I found a lot of questions about this problem but did not find any answers. I have a rather strange problem. When I add a 32bit reference for <code>System.Data.SQLite</code> to my project it only works on x86 platform, and that should be fine by me as my app will run only on 32bit Windows. But when I try to run the app on 32bit Windows it throws the exception <code>Could not load file or assembly 'System.Data.SQLite'</code>. Then I downloaded 64bit version of <code>System.Data.SQLite dll</code>. Then I could start debug with ANY CPU target platform, but couldn't run the app on my 32bit XP that had the same error <code>Could not load file or assembly 'System.Data.SQLite'</code>.</p>
  
  <p>I'm going a bit crazy. I don't know it is of any relevance, I don't see any, but target framework for my app is .NET 4.0 and I tried every combination of <code>System.Data.SQLite</code> (.NET 2.0, .NET 3.5, .NET 4.0) 32bit and 64bit version, nothing helps. Here is how my config file looks like:</p>
  
  <pre><code>&lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="System.Data.SQLite"/&gt;
        &lt;add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
  
    &lt;connectionStrings&gt;
      &lt;add name="VetStationConnection" connectionString="Data Source=VeterinaryStation.s3db" providerName="System.Data.SQLite.SQLiteFactory"/&gt;
    &lt;/connectionStrings&gt;
  </code></pre>