vendredi 13 mars 2015

Can't find sqlite db in folder, I feel stupid [Windows Phone 8]

I'm having so much trouble with a simple project. My WP8 app needs to retrive data from an SQLite db, so I put its file in the Assets folder (it's a temporary thing) and I need to get it. It won't. This is my code.



try
{
string path="\\Assets\\dbelli.db";
public SQLiteConnection conn=new SQLiteConnection(path);
}
catch (Exception e)
{
MessageBox.Show("Error: " + e.ToString());
}


Which throws a FileNotFoundException. I've searched everything on the web, and I even tried to put the absolute path from C:\, but it won't work. I feel so stupid for this. Can I ask for help?


Aucun commentaire:

Enregistrer un commentaire