robertohuertasm / SQLite4Unity3d

SQLite made easy for Unity3d
MIT License
1.27k stars 265 forks source link

UWP Desktop app cannot write to db, but it read data successfully #93

Open mubeenfahmed opened 5 years ago

mubeenfahmed commented 5 years ago

Hi @robertohuertasm , I am experiencing a similar problem, but in my I am targeting UWP Desktop. I've followed your windows tutorial and did everything accordingly, but when I run the application on VS 2017, upon inserting values in db I get the following output.

SQLiteException: ReadOnly at SQLite4Unity3d.PreparedSqlLiteInsertCommand.ExecuteNonQuery (System.Object[] source) [0x00000] in :0 at SQLite4Unity3d.SQLiteConnection.Insert (System.Object obj, System.String extra, System.Type objType) [0x00000] in :0 at SQLite4Unity3d.SQLiteConnection.Insert (System.Object obj) [0x00000] in :0 at SQLite4Unity3d.SQLiteConnection+<>c__DisplayClass95_0.b0 () [0x00000] in :0 at System.Action.Invoke () [0x00000] in :0 at SQLite4Unity3d.SQLiteConnection.RunInTransaction (System.Action action) [0x00000] in :0 at SQLite4Unity3d.SQLiteConnection.InsertAll (IEnumerable objects) [0x00000] in :0 at loginService+d36.MoveNext () [0x00000] in :0 at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in :0

Kindly help, I am stuck.

skingd commented 5 years ago

Your error appears to have your answer - ReadOnly. Ensure you have proper write permissions/ability to the DB.