title: Cannot open SQLite database in Windows 8 Store App
body: <p>I am trying to include SQLite database in my Windows 8 Store App (HTML/JS). I was following these tutorials: </p>
  
  <p><a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=luV6no8ti6M" rel="nofollow">http://www.youtube.com/watch?feature=player_embedded&amp;v=luV6no8ti6M</a>
  <a href="http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx" rel="nofollow">http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx</a></p>
  
  <p>At one point I added following code:</p>
  
  <pre><code>var dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "people.db");
  using (var db = new SQLite.SQLiteConnection(dbpath))
  {
      ...
  }
  </code></pre>
  
  <p>After deploying application I get following error:</p>
  
  <pre><code>Could not open database file: C:\Users\...\people.db (CannotOpen)
  </code></pre>
  
  <p>I looked up this path and file people.db was created, but apparently failed to open. What might be the reason for this?</p>
  
  <p>I have also downloaded source code for this tutorial:</p>
  
  <p><a href="http://www.dzone.com/articles/getting-started-sqlite-windows" rel="nofollow">http://www.dzone.com/articles/getting-started-sqlite-windows</a></p>
  
  <p>and got exact same exception - might there be something wrong with my computer configuration?</p>