Are you using the x64 version of SqlLite?

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Tue, Jul 28, 2009 at 10:26 AM, Tomk <[email protected]> wrote:

>
> I'm trying to get started with FNH and SQLite but I can't get the
> demo's to work on my machine. My setup is Windows 7, x64 and have
> tried both Gabriel Schenkers as the tutorial code from the wiki.
>
> I'm getting "An invalid or incomplete configuration was used while
> creating a SessionFactory. Check PotentialReasons collection, and
> InnerException for more detail."
>
> which is caused by "Message="The IDbCommand and IDbConnection
> implementation in the assembly System.Data.SQLite could not be found.
> Ensure that the assembly System.Data.SQLite is located in the
> application directory or in the Global Assembly Cache. If the assembly
> is in the GAC, use <qualifyAssembly/> element in the application
> configuration file to specify the full name of the assembly."
>
> Now there seems to be an issue with the x86 version, but I have
> included the 1.0.65.0, x64 version and tried that as well: same error.
>
>
> This is my CreateSessionFactory I use:
>  return Fluently
>                .Configure()
>                .Database(SQLiteConfiguration.Standard.UsingFile
> (DbFile))
>                .Mappings(m =>
> m.FluentMappings.AddFromAssemblyOf<Program>())
>                .ExposeConfiguration(BuildSchema)
>                .BuildSessionFactory();
>
>
> How can I get the SQLite db to work on x64 with FNH?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to