Ensuring you build as x86 should have fixed the issue, if you're
referencing the x86 build of sqlite.

You could try downloading a little project I have up on github that I
use to diagnose FNH issues.
http://github.com/paulbatum/Fluent-NH-Test-Bed

Its setup to just work with sqlite straight out of the box. Maybe it
will help you figure out where you're going wrong?

On Oct 26, 1:25 am, mofux <[email protected]> wrote:
> Hi!
>
> i'm interested in using NHibernate together with the Fluent NHibernate
> project, so i wrote a little Test Application to get used to it.
>
> however, i'm running into a weird Problem when creating the
> SessionFactory:
>
> {"Could not create the driver from NHibernate.Driver.SQLite20Driver,
> NHibernate, Version=2.1.0.4000, Culture=neutral,
> PublicKeyToken=aa95f207798dfdb4."}
>
> a search at google pointed me to issues with the x64 architecture and
> the SQLite wrapper, so i tried to set the x86 configuration, but the
> problem is still there :(
>
> here is the code of the small sample project:
>
> using System;
> using de.AvatR.Shared;
> using FluentNHibernate.Automapping;
> using FluentNHibernate.Cfg;
> using FluentNHibernate.Cfg.Db;
> using NHibernate;
>
> namespace NHibernateTest
> {
>     public class HibernateSessionHelper
>     {
>         public static ISessionFactory _sessionFactory;
>
>         public static ISession OpenSession()
>         {
>             if (_sessionFactory == null)
>             {
>                 _sessionFactory = Fluently.Configure()
>                     .Database
> (SQLiteConfiguration.Standard.ConnectionString("data
> source=sqlite.db"))
>                     .Mappings(
>                     m => m.AutoMappings.Add
> (AutoMap.AssemblyOf<SimpleData>())).
>                     BuildSessionFactory();
>             }
>
>             return _sessionFactory.OpenSession();
>         }
>     }
>
> }
>
> i would be very interested if someone else also experiances this
> behaviour of if i'm just doing something wrong with the SQLite
> setup...
> thanks in advance,
> Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to