Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello
i am trying to deploy a wpf application with sqlite database and target .net framework 4.5.2, when i install the application its work ion my machine (the same machine i develop the application on)
but when i install the application on another devices its not working.
i search a lot for the same issue many people have the same problem, i tried their solution its not working for me.
i attach the sqlite dll and the database file but no change.
i install it in pc that has all dlls and .netframework but its not working i think its something related to the sqlite
can any one make this possible?

What I have tried:

oneclick publish using VS 2015
vs installer in visual studio 2015
Posted
Updated 18-Mar-18 18:03pm

You need to manually add the SQLite.Interop.dll file and folder to your solution's main project for the type of build that you are using. When you are ready to publish, check and tell your installer to include them. You can find the file and folders in the packages\System.Data.SQLite.Core.1.0.106.0\build solution folder.
 
Share this answer
 
Comments
Member 13199484 19-Mar-18 0:30am    
I add those library to the bin folder and I tell the vs to copy them to the output.
but for the SQLite.Interop.dll when I add it and rebuild the project its disappear.
Graeme_Grant 19-Mar-18 0:41am    
You add them to the project, not the bin folder, and set the properties to add if newer. when you compile the app, the files will be copied as part of the build process.
Member 13199484 19-Mar-18 7:24am    
I add the dll nothing change the application still not working
Graeme_Grant 19-Mar-18 12:05pm    
It works - I do it with my own projects & ClickOnce installation...

Add the x86 & x64 folders to your main project and add the existing SQLite.Interop.dll file (don't mix them up) and set the "copy" project property for each. (side note: one of my apps has over 200 projects and one is the main app project, so I add the folders and files to it). Now (release) build the app and make sure that the folders and files are copied to the bin folder correctly. Once they do, now configure your installer to correctly copy the files. Now you're ready to publish...

I have an article on how to do "Silent" ClickOnce and pitfalls to avoid: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]

I'm currently working on an SQLite article but it is not finished yet. I've noted your issue and will cover it in a section of the article. When will it be published? Good question! I'm working on it between jobs and answering questions here. It's quite comprehensive and will take a little while longer to complete. So no exact publication date, sorry.
Member 13199484 19-Mar-18 8:09am    
Please can you remote my pc and check the project?
Please check windows event log, as there can be more info about the cause of errors...
It can be found in Event Viewer, in particular Application Log and System Log might help ...
Cheers,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900