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