Dear sir,
This is sulochana, am new to develop an windows phone app here am trying to connect SQLite database for login credentials but am unable to connect the SQLite database.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 3:07 AM EDT
http://khatrishashank.wordpress.com/2013/12/05/windows-phone-8-app-with-sqlite/
sulochana g14 reputationPosted Aug 20, 2014, 3:19 AM EDT
I tried this article and i had created sqlite database in SQLitemanager and i read the connection string like this
Dim path1 = Path.Combine(Path.Combine(ApplicationData.Current.LocalFolder.Path, "Sample.sqlite"))
connection = New SQLiteConnection(New SQLitePlatformWP8(), path1)
when i read the connection its coming the different path and its shows an error msg path is not defined.
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 3:24 AM EDT
Dim path1 = "C:\windowsphoneapp\Sample.sqlite"
replace "C:\windowsphoneapp\Sample.sqlite" with your machine path where Sample.sqllite exists
try it and let me know, if it's establishing connection or not.
sulochana g14 reputationPosted Aug 20, 2014, 4:18 AM EDT
I tried this tutorial while establishing the connection from app this type of error msg its showing
A first chance exception of type 'SQLite.Net.SQLiteException' occurred in SQLite.Net.DLL.
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 4:21 AM EDT
Dim path1 = "C:\windowsphoneapp\Sample.sqlite"
and is this sqllite exception thrown after above statement
sulochana g14 reputationPosted Aug 21, 2014, 1:18 AM EDT
sulochana g14 reputationPosted Aug 21, 2014, 3:22 AM EDT
Guest UserRank #259 · 9.8K reputationPosted Aug 21, 2014, 3:50 AM EDT
sulochana g14 reputationPosted Aug 21, 2014, 8:07 PM EDT