First Fluent NHibernate Project

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-04-20T21:04:00Z Indexed on 2010/04/21 1:33 UTC
Read the original article Hit count: 279

Filed under:

I'm trying to follow the "Your first project" tutorial at http://wiki.fluentnhibernate.org/Getting_started and have hit a roadblock. When I try to run the console application, I'm getting this error: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. I have created a SQLite database "firstProject.db" and referenced the full path to the file in the call to:

return Fluently.Configure()
            .Database(SQLiteConfiguration.Standard
                .UsingFile(DbFile))
            .Mappings(m =>
                m.FluentMappings.AddFromAssemblyOf<Program>())
            .ExposeConfiguration(BuildSchema)
            .BuildSessionFactory();

so I don't know what I'm doing wrong. What/where is this "PotentialReasons" collection? Thank you for the help.

Andy

© Stack Overflow or respective owner

Related posts about fluent-nhibernate