Yea, I'm using Fluently.Configure(). The configuration code (without the 
mappings) looks like this:  

NHibernate.Cfg.Configuration configuration = GetConfiguration();
FluentConfiguration fluentConfiguration = Fluently.Configure(configuration);
fluentConfiguration.Diagnostics(SetupDiagnostics);

AddListenersTo(configuration);

fluentConfiguration.Mappings(ConfigureMapping);

try
{
this.sessionFactory = fluentConfiguration.BuildSessionFactory();
this.configured = true;
}
catch (Exception exception)
{
throw;
}


It's the BuildSessionFactory() that fails, and even though it's only invoked 
once, the Diagnostics() stuff is invoked twice; first without much data at all, 
second with too much (duplicate assembly and fluent mappings).  

--  
Asbjørn Ulsberg  -=|=- [email protected] (mailto:[email protected])
«He's a loathsome offensive brute, yet I can't look away»

On mandag 5. september 2011 at 15:55, James Gregory wrote:

> Ok, that's fair enough. Nothing immediately obvious in the stack trace. Tell 
> me, are you using Fluently.Configure? And are you creating multiple instances 
> of it or doing everything within one?  
>  
>  --  
>  You received this message because you are subscribed to the Google Groups 
> "Fluent NHibernate" group.
>  To view this discussion on the web visit 
> https://groups.google.com/d/msg/fluent-nhibernate/-/aLPhyYFU0gwJ.
>  To post to this group, send email to [email protected] 
> (mailto:[email protected]).
>  To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
>  For more options, visit this group at 
> http://groups.google.com/group/fluent-nhibernate?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to