Bruno:
- are you using nhibernate 1.2.1 or 2.x ?
- When do you build the session factory? (Where are you using
Configuration.BuildSessionFactory()?)
I had this problem with 1.2.1 because I'm building a new session
factory when it losts the metadata class information
(sessionFactory.GetAllClassMetadata().Count.Equals(0)) but this
problem is on IIS.
The solution was dispose the session factory manually:
if (sessionFactory!=null)
{
sessionFactory.Dispose();
GC.SuppressFinalize(sessionFactory);
}
sessionFactory = configuration.BuildSessionFactory();
I think nhibernate 2.x hasn't this problem.
Nelo.
On Fri, Sep 12, 2008 at 3:29 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
> hmmmmmm generating mappings .... hmmmmm take care with it.
>
> 2008/9/12 Bruno Matos <[EMAIL PROTECTED]>
>>
>> Hello Fabio,
>>
>> Thanks for your answer. In fact I'm trying to read Hibernate in Action,
>> but the time is short...
>>
>> Where do you think that may be the error? I had a database from where I
>> generate all .cs entity's and mapping files as well as the main
>> configuration file, with NConstruct Lite. Then I sow a HelloWorld example
>> and did what it was there...
>>
>> --
>> Bruno
>>
>> Fabio Maulo wrote:
>>
>> Hi Bruno.
>> You need to read something more before continue using NH.
>> The NHibernate in Action would be a good resource.
>> BTW there are various examples in CodeProject and, in general googling
>> "NHibernate example".
>> My advise is: stop what you are doing and find some resource that can help
>> you.
>> Bye.
>> Fabio Maulo.
>>
>>
>>
>>
>>
>
>
>
> --
> Fabio Maulo
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---