I wrote an application using sqlite and it works fine on most systems. It is written in C #, and the only non-structural assembly is sqlite, which is included in System.Data.SQLite.dll.
I deploy it to all computers (copy the exe file, the database file and the System.Data.SQLite file). It works great for all of my PCs and most of the PCs I have tried.
But then I have reports that for some people raise the following exception:
Failed to load file or assembly 'System.Data.SQLite, Version = 1.0.65.0, Culture = neutral, PublicKeyToken = db937bc2d44ff139' or one of its dependencies. An attempt was made to download a program using the wrong format.
Now I have made sure that the dll file is in the same folder as the application exe file. This is the same DLL with the same version as in the above exception message.
I was very confused by this, so I created a new virtual machine, installed Windows 7 Professional on it and just copied the attached files, and it worked. Therefore, if it works on fresh windows, I canβt imagine what another computer might lose ...
Note. Two of the machines in which the project throws an exception also work with Windows 7 proffesional.
I would really appreciate any help on this, because I'm fresh from ideas ...
c # sqlite deployment system.data.sqlite
David BoΕΎjak
source share