This does not look anything like issue with medium trust.

The error message is standard message NHibernate throws when you're 
trying to access lazily-loaded collection after you close the session.
There must be something you're doing differently.

Krzysztof


Dryadwoods wrote:
> In the controller I'm doing something like:
>
> MyObject myObj = MyObject.Find(id);
> Return(myObj)
>
> Then in the view I'm trying to access some "child attribute":
>
> <%= Model.MyChild.Name %>
>
> Initializing[......]-failed to lazily initialize a collection of
> role: ........ , no session or session was closed
> Exception Details: NHibernate.LazyInitializationException:
>
> This is happening on my hosting provider's server. In localhost this
> is working without problems,
>
> Any ideas?
>
> Thanks
>
>
> On Nov 7, 9:13 am, Krzysztof Koźmic <[email protected]>
> wrote:
>   
>> can yoube more specific?
>>
>> What do you mean it's not working?
>> You get an exception?
>> Paste us the exception.
>>
>> Krzysztof
>>
>>
>>
>> Dryadwoods wrote:
>>     
>>> Hello,
>>>       
>>> I 
>>> downloadedhttp://www.castleproject.org/download/activerecord/v1rc1/Initializing...
>>> Created my classes and I am using lazy loading.
>>> On localhost all is running fine but on my hosting provider's server
>>> the lazy loading isn't working (medium trust), all the rest is
>>> working.
>>>       
>>> How can I solve this problem?
>>>       
>>> Thanks.
>>>       
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to