sqlite error "Unable to open database file"

Hi,

I have code that I am trying to open sqlite database, I am getting error "Unable to open database file". My path to database is correct. I am working on Windows mobile,

My code:
string s = "Data Source=" + AppPath() + "\\DB\\test.sqlite";
            SQLiteConnection conn = new SQLiteConnection();
            conn.ConnectionString = s ;
            try
            {
            conn.Open();
            }
            catch(Exception ex)
            {
           
            }

Please help me to solve issue
mkk39Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sindhuxyzConnect With a Mentor Commented:
This is path issue. Make sure the path
0
 
bkokxCommented:
Do you have read/write access in that folder?
0
 
strickddCommented:
Definitely a permissions issue of some sort. Verify the user you are running under. Then on the folder and the test.sqlite file, right click and go to security. Verify that your user has all but Full Control on those. Easiest way is to check "Full Control" and then uncheck it, this will select everything but full control.
0
All Courses

From novice to tech pro — start learning today.