Don't get the error after putting in the following code before BuildSessionFactory():
fluentConfiguration.ProxyFactoryFactory("NHibernate.Bytecode.DefaultProxyFactoryFactory,
NHibernate");
Here is the code that sets things up (from s#arp arch):
fluentConfiguration.Mappings(m =>
{
foreach (var mappingAssembly in mappingAssemblies)
{
var assembly = Assembly.LoadFrom(MakeLoadReadyAssemblyName(mappingAssembly));
m.HbmMappings.AddFromAssembly(assembly);
m.FluentMappings.AddFromAssembly(assembly)
.Conventions.AddAssembly(assembly);
}
if (autoPersistenceModel != null)
{
m.AutoMappings.Add(autoPersistenceModel);
}
});
fluentConfiguration.ProxyFactoryFactory("NHibernate.Bytecode.DefaultProxyFactoryFactory,
NHibernate");
return fluentConfiguration.BuildSessionFactory();
Matt