vendredi 3 avril 2015

Can't create sqlite db on production machine

I have a program that works correctly on my computer in Debug mode. When program start he create a Sqlite data base file if not exists. This is ok on my computer. I create a setup version for production version. The program setup is ok. But when I start the program (.exe) my db file is not created.


This is the connection string I used :



static string dbDirectopry = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
static string dbName = "MySqliteDb.db";

static string Connexion = Path.Combine(dbDirectopry, @"MySociety\MyApplication\" + dbName);


can anyone help me to solve this issue?


Thanks


Aucun commentaire:

Enregistrer un commentaire