Answered by:
SQLite in Universal App: Trouble with dependencies

Question
-
Hi,
I'm developing a Universal App for Windows 10, that uses a SQLite database.
I added "SQLite for Universal App Platform" and on my local Machine everything works fine. But when I try to test the mobile App an error is thrown when trying to connect to the database: "Unable to load DLL 'sqlite3'". Also I get some Warnings like "The SDK SQLite.UAP.2015, Version=3.8.11.1 depends on the following SDK(s) Microsoft.VCLibs, version=14.0 ". In some other forums I found, that I have to add visual c++ 2015 runtime for universal windows. Unfortunately I don't know how to to that. I can only coose the 2013 Runtime, which seems to be the wrong one (see attached screenshot).
Regards
Kim
Thursday, June 30, 2016 12:42 PM
Answers
-
Hi Quaxdachs,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools .
>>I can't choose 2015, there is only 2013 available
2015 is available for you according to your screenshot. You can find the package "Visual C++ 2015 Runtime for Universal Windows" under the package "SQLite for Universal App".
Please update the reference for your project.
I marked the item in your screenshot in red:
Best Regards, Sunteen Wu
- Proposed as answer by Sunteen Wu Thursday, July 7, 2016 1:50 AM
- Marked as answer by Barry Wang Friday, July 8, 2016 12:47 AM
Friday, July 1, 2016 10:28 AM
All replies
-
Try if suggestions in following link solves your problem
http://stackoverflow.com/questions/36350816/unable-to-load-dll-sqlite3-for-windows-universal-mobile
Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor
Thursday, June 30, 2016 5:02 PM -
Already saw these suggestions. That's why I posted the screenshot: I can't choose 2015, there is only 2013 available. Although the 2015 Runtime is installed on my machine, it doesn't pop up in the reference-window.
Also it seems that 2013 Runtime provides the desired Version 14 (see screenshot)
Thursday, June 30, 2016 5:23 PM -
Hi Quaxdachs,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools .
>>I can't choose 2015, there is only 2013 available
2015 is available for you according to your screenshot. You can find the package "Visual C++ 2015 Runtime for Universal Windows" under the package "SQLite for Universal App".
Please update the reference for your project.
I marked the item in your screenshot in red:
Best Regards, Sunteen Wu
- Proposed as answer by Sunteen Wu Thursday, July 7, 2016 1:50 AM
- Marked as answer by Barry Wang Friday, July 8, 2016 12:47 AM
Friday, July 1, 2016 10:28 AM