I've got a component-based app, build with visual studio in c#. There are a UI and a Data component. The data component access a sqlite database. In the IDE I can start the program, so UI appears and everything works. But if I want to deploy the app with ClickOnce, Installing works, but the app doesn't make a move. There's also no error in the logfile.
I tried several ways and found out, it has to be something with SQLite, because if i deploy the app without using a connection to the database, it works.
Maybe it is a problem with the SQLite.Interop.dll, because when i wrote the unittests, they also cant load this dll. I manually have to put it in the right unittest-project-folder. Installing the interop.dll with NuGet also throws errors.
With the code i don't anything special. Here's a short example. Sorry for using german names.
internal class Daten : IDBAnforderungen
{
private SQLiteConnection _conn;
public Daten()
{
_conn = new SQLiteConnection("Data Source=c:/Datenbank/mydb.sqlite; Version = 3;");
}
Edit: Visual Studio C# - SQLite.Interop.dll not found
In this thread there is an exception. But i got nothing, when starting.
Edit:
My solution simply was, to switch to MySQL. So there was no problems then.