HI Oskar, Tuna and Jason

Thank you very much. My problem has been resolved. The session factory and
configuration were initialised for many times. Thank you all.

Daoming



On 7 April 2010 13:54, Daoming Yang <[email protected]> wrote:

> Thanks Jason.
>
> I have tried. Burrow did not ship with NHibernate.
>
> *Is anyone using NHibernate 2.1.2.4000 with Burrow? *Could you advise me
> how you configured the settings?
>
>
> NOTE:
>
> I have tried the following setting in the Web.Config file.
>
> <runtime>
>
>   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
>     <dependentAssembly>
>       <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4"/>
>       <bindingRedirect oldVersion="2.0.1.4000" newVersion="2.1.2.4000"/>
>     </dependentAssembly>
>   </assemblyBinding></runtime>
>
>    Many Thanks.
>
> Daoming
>
>
> On 7 April 2010 13:35, Jason Dentler <[email protected]> wrote:
>
>> Daoming,
>>
>> Try to use http://hornget.net to resolve those types of dependency
>> issues.
>>
>> Thanks,
>> Jason
>>
>>
>> On Wed, Apr 7, 2010 at 7:19 AM, Daoming Yang 
>> <[email protected]>wrote:
>>
>>> Thank you Tuna and Oskar,
>>>
>>> Now I'm planning to using NHibernate.Burrow and see whether this could
>>> resolve my Collection was modified; enumeration operation may not
>>> execute issue.
>>>
>>> Here is another issue "*Could not load file or assembly 'NHibernate,
>>> Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'"*
>>> *
>>> *
>>> *How can I make the NHibernate.Burrow to work with NHibernate version
>>> 2.1.2.4000 ?*
>>> *
>>> *
>>> *NOTE: *
>>>
>>>    1. *I have downloaded the source of the Burrow and tried to reference
>>>    the Nhibernate DLL version 2.1.2.4000, but project cannot compile. *
>>>
>>> *
>>> *
>>> *Can anyone advise me?*
>>> *
>>> *
>>> *Many thanks.*
>>> *
>>> *
>>> *Daoming*
>>> *
>>> *
>>> *
>>> *
>>>
>>> On 7 April 2010 11:16, Oskar Berggren <[email protected]> wrote:
>>>
>>>> Theory: Maybe the problem is that your configuration and session factory
>>>> is initialized on the first request after application restart. If a second
>>>> request comes in before the first request is finished, maybe it will also
>>>> try to initialize and then triggering this problem somehow.
>>>>
>>>> /Oskar
>>>>
>>>>
>>>> 2010/4/7 Daoming Yang <[email protected]>
>>>>
>>>> I open the session for each request and close it at the end of the
>>>>> request.
>>>>>
>>>>> Here is the code in the Global.asax.cs file.
>>>>>
>>>>> Can anyone advise me?
>>>>>
>>>>> Many thanks.
>>>>>
>>>>> Daoming
>>>>>   protected void Application_BeginRequest(object sender, EventArgs e)
>>>>>          {             ManagedWebSessionContext.Bind(HttpContext.
>>>>> Current, SessionManager.SessionFactory.OpenSession());         }
>>>>>          protected void Application_EndRequest(object sender,
>>>>> EventArgs e)         {
>>>>>             ISession session = ManagedWebSessionContext.Unbind(
>>>>> HttpContext.Current, SessionManager.SessionFactory);
>>>>>              if (session != null)
>>>>>              {
>>>>>                 try
>>>>>                  {
>>>>>                      if (session.Transaction != null && session.
>>>>> Transaction.IsActive)
>>>>>                      {
>>>>>                         session.Transaction.Rollback();
>>>>>                      }
>>>>>                     else
>>>>>                      {
>>>>>                          session.Flush();
>>>>>                      }
>>>>>                 }
>>>>>                finally
>>>>>                  {
>>>>>                     session.Close();                 }
>>>>>             }
>>>>>          }
>>>>>
>>>>>
>>>>>
>>>>> On 7 April 2010 10:28, Tuna Toksoz <[email protected]> wrote:
>>>>>
>>>>>> Seems to me that you are initializing NH Configuration (and also
>>>>>> session factory) many times?
>>>>>>
>>>>>> Tuna Toksöz
>>>>>> Eternal sunshine of the open source mind.
>>>>>>
>>>>>> http://devlicio.us/blogs/tuna_toksoz
>>>>>> http://tunatoksoz.com
>>>>>> http://twitter.com/tehlike
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 7, 2010 at 12:23 PM, Daoming Yang <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>>    at WebController.Controllers._baseController..ctor()
>>>>>>>    at WebController.Controllers.Admin.AdminProductController..ctor()
>>>>>>>
>>>>>>>
>>>>>>  --
>>>>>> 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]<nhusers%[email protected]>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>>>
>>>>>
>>>>>  --
>>>>> 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]<nhusers%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>>
>>>>
>>>>  --
>>>> 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]<nhusers%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>
>>>
>>>  --
>>> 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]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>
>>  --
>> 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]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
>

-- 
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.

Reply via email to