mercredi 6 avril 2016

Sqlite - can't connect to database on another computer

I have some issues with my SQLite database. When im making an app in C#(VS2015) on my personal computer and im debugging program, whole database is working fine. But when i trying to run an .exe file on any other PC (im copying whole debug folder with database file in it) application cant connect to database and simply crash.

        string dbConnection = @"Data Source=database.db; Version=3;";
        SQLiteConnection sqliteCon = new SQLiteConnection(dbConnection);
        (..)

Any solution ? My app is almost done beside this little problem.

Aucun commentaire:

Enregistrer un commentaire