Thursday, December 3, 2015

An unhandled exception of type 'SQLite.Net.SQLiteException' occurred in SQLite.Net.Platform.WinRT.DLL

Problem:
My app was trying to read a local copy of SQLite db.  I kept getting this error. It was crazy since the file is present in the project.  Each time I would try to open the file with the connection string I would get this error

Solution:
It was simple enough.  I have forgot to set my Build Action properties on the SQLite db file.  It set to none when it should be set to Content.
Build Action = Content.

No comments:

Post a Comment