You are using lazy collections/properties, right? How are you passing data 
from your entities to the DTOs?
Can you post your code?



On Monday, August 27, 2012 8:01:57 AM UTC+1, Jakes wrote:
>
> I have a problem using nHibernate in my webservice.
>
> Its first time i have used nHibernate in a Webservice but have used it in 
> my ASP.NET <http://asp.net/> applications for the last 4-5 years.
>
> What i would like to do is have some of the functions in my 
> ASP.NET<http://asp.net/> application 
> be available though a webservice.
> I have made som DataTransferObjects because i dont need all the data for 
> the objects going though the webservice.
>
> When i try to get some data though the DAL (which works fine in the 
> ASP.NET <http://asp.net/> application) then i get an error that the 
> session (gues its the nHibernate session) is not initialized???
>
> Do i have to do something speciel with the nHibernate session to get it to 
> work though a webservice that i do not need in a ASP.NET <http://asp.net/>
>  aplication.
>
> Hobe some one can help me.
>
> Regards,
> Jacob
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/MBt6n2_QMysJ.
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