Could Not Create The Driver From Nhibernate.driver.sqlite20driver, Nhibernate, Version=3.1.0.4000
I have a tests project that I am trying to test my nhibernate layer with using sql lite in-memory database. I'm getting the error: Could not create the driver from NHibernate.Drive
Solution 1:
Latest version of SQLite for .NET is distributed as 2 dlls.
- System.Data.SQLite.dll
- SQLite.Interop.dll
Both dlls need to be present in the same folder as your EXE. Interop dll is platform specific so you have to manually (or Post-build) copy x86 or x64 version.
Another thing to keep in mind is that SQLite.Interop.dll itslef depends on MSVCR100.DLL (part of Visual C++ 2010 SP1 Redistributable Package). You can get it here:
Post a Comment for "Could Not Create The Driver From Nhibernate.driver.sqlite20driver, Nhibernate, Version=3.1.0.4000"