-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Nhibernate + SQLite => coredll problem
PostPosted: Wed May 03, 2006 3:45 am 
Newbie

Joined: Wed Apr 19, 2006 5:09 am
Posts: 2
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 3:38 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Then maybe you are trying to use WinCE provider for SQLite instead of the full one?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.