title: System.BadImageFormatException with Sqlite
body: <p>I am trying to use SQLite with my WPF application. I can get the reads and writes to work ok. The only problem I have is that my xaml is not displaying and I get the following error:</p>
  
  <p>System.BadImageFormatException
  Could not load file or assembly 'System.Data.SQLite, Version=1.0.80.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.</p>
  
  <p>My questions:
  -How do I know what version of SQLite that I am using? 32bit or 64bit?
  -I tried changing the Platform target to x86 and x64 but neither help. How can I resolve this error?</p>