I've been trying to use nHibernate and an SQLite dbase in my C# solution.
Now I've added the correct dll's (at least, I added the dll's mentioned in nhibernate's object browser referring to SQLiteDriver).
Whenever I try to run my code (which is a simple console program with just the output of a little dbase, for testing purposes) I get this exception error:
Code:
NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from
Driver ---> System.DllNotFoundException: Unable to load DLL (coredll).
at Finisar.SQLite.Util.GetProcessHeap()
at Finisar.SQLite.Util.AllocateUnmanagedMemory(Int32 size)
at Finisar.SQLite.MarshalStr.GetSQLiteStr()
at Finisar.SQLite.sqlite3.open(String filename)
at Finisar.SQLite.SQLiteConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
--- End of inner exception stack trace ---
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
--- End of inner exception stack trace ---
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
at NHibernate.Impl.SessionImpl.get_Connection()
at NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel)
at NHibernate.Transaction.TransactionFactory.BeginTransaction(ISessionImplementor session)
at NHibernate.Impl.SessionImpl.BeginTransaction()
at NHibcons.Class1.Main(String[] args) in c:\nhibcons\class1.cs:line 23
What bothers me most is that it says "Unable to load DLL (coredll)". A little google'ing got me to the conclusion coredll.dll is used for WindowsCE only?
Did anyone else encounter this, or have a solution?