mardi 5 avril 2016

SQLite TypeInitializationException

I have downloaded the SQLite precompiled binaries for .NET framework (both regular and statically linked AND 32/64-bit have tried them all) and I am following the instructions here.

I have done this in the past (couple years ago) and it has always worked great. Today I wanted to use SQLite again. I add a reference to the System.Data.SQLite.dll and I receive the error:

Could not load file or assembly 'System.Data.SQLite, Version=1.0.99.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format."

What is going on here? Like I said I have tried referencing all four of the different DLLs. I have also changed my configuration manager to target All CPU/x64/x86 all with the same result.

Aucun commentaire:

Enregistrer un commentaire