System.Data.SQLite
View Ticket
Not logged in
Ticket UUID: b3002089c687a3f64c4499d83828d67bc364eca2
Title: Error: "unable to open the database" in windows startup
Status: Closed Type: Incident
Severity: Important Priority: Medium
Subsystem: Integration_Via_PInvoke Resolution: Rejected
Last Modified: 2013-01-31 01:27:41
Version Found In: 1.0.84
User Comments:
anonymous added on 2013-01-30 22:07:43: (text/x-fossil-plain)
When I write my application when i run manually it works fine.

But when i put my application in windows startup by creating a registry key it throws a error "unable to open the database".

The database file, is in application instalation folder (C:\Program files\MyApplication\) and the user "Users" have read and write permissions to database file.

I'm working with EntityFramework 5, .NET 4.5, at a Windows 7 machine.
It's critical because my application need start at windows startup, and this is breaking the release.

mistachkin added on 2013-01-30 22:39:08: (text/x-fossil-plain)
This issue is almost certainly not directly related to System.Data.SQLite; rather, it is a startup permissions issue in Windows (e.g. "normal" users cannot write to the "C:\Program Files" directory).