C# .net -> SQLite error: Unable to open the database file

Posted by CODe on Stack Overflow See other posts from Stack Overflow or by CODe
Published on 2011-01-02T09:43:19Z Indexed on 2011/01/02 9:54 UTC
Read the original article Hit count: 372

Filed under:
|
|
|

Hello all,

I'm getting "System.Data.SQLite.SQLiteException: Unable to open the database file." when I attempt to access the database to save a record upon the "first" opening of my program.

Here's the thing, it works fine when debugging locally in Visual Studio, but stops working when I package the program in an installer, and then install the program somewhere.

I was guessing that it was the location of the database, which I just have set at database.s3db without a path, because it is stored next to the program's exe, but how could that cause problems?

I'm at a loss, any further ideas or suggestions for solving this problem would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET