Hi friends, I'm creating a project with NHibernate in Windows Forms.
It was working fine but I update the reference of nhibernate to 3.3.1 and
fluent nhibernate to 1.4 and I get a error with a message:


*An unhandled exception of type 'System.TypeInitializationException'
occurred in FluentNHibernate.dll*
In the innerExceptions, I get a error message:
*The type initializer for 'NHibernate.LoggerProvider' threw an exception.*

The problem is, I do not have configured any log in the sessionFactory.
What can I do to solve it? Look my code:

var config = Fluently.Configure()
    .Database(MsSqlConfiguration.MsSql2008.Dialect<MsSql2012Dialect>()
                                     .ConnectionString(c =>
c.FromConnectionStringWithKey("Default"))
   .AdoNetBatchSize(50)
   .QuerySubstitutions("true 1, false 0"))
   .Cache(c => c.UseQueryCache())
   .CurrentSessionContext(IsInWebContext ? "managed_web" : "thread_static")
   .Mappings(c => c.FluentMappings.AddFromAssemblyOf<ProductMap>())
 .BuildConfiguration();

Thank you all


-- 
______________________________________
Felipe B Oriani
felipeoriani.com.br felipeori...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to