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