SQLite4Unity3d icon indicating copy to clipboard operation
SQLite4Unity3d copied to clipboard

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

Open mubeenfahmed opened this issue 6 years ago • 1 comments

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.b__0 () [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+d__36.MoveNext () [0x00000] in :0 at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in :0

Kindly help, I am stuck.

mubeenfahmed avatar Oct 31 '18 05:10 mubeenfahmed

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

skingd avatar Dec 17 '18 17:12 skingd