Fluent NHibernate - exception occurred during configuration of persistence layer
Posted
by inutan
on Stack Overflow
See other posts from Stack Overflow
or by inutan
Published on 2009-10-27T13:42:26Z
Indexed on
2010/05/16
17:00 UTC
Read the original article
Hit count: 856
Hello there,
I am using Fluent NHibernate with an external 'hibernate.cfg.xml' file.
Following is the configuration code where I am getting error:
var configuration = new Configuration();
configuration.Configure();
_sessionFactory = Fluently.Configure(configuration)
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<Template>())
.BuildSessionFactory();
return _sessionFactory;
But When NHibernate is trying to configure, I am getting floowing error:
An exception occurred during configuration of persistence layer.
Please help.
© Stack Overflow or respective owner