Just started with NHibernate about a week and a half ago. Was hoping to use it for the backbone of a project I am working on but immediately ran into issues in Medium Trust (target audience for my application). I was about to give up on it and go to SubSonic until I found a post by Martijn Boland (http://blogs.taiga.nl/martijn/ 2009/06/24/new-adventures-under-medium-trust/) over at the cuyahoga project (http://www.cuyahoga-project.org/).
He reportedly was able to get NHibernate+Castle to work in Medium Trust, and best of all it supports lazy loading. He submitted a patch to Castle which they quickly applied, but unfortunately, I am using VS Express versions so I couldn't open the NHibernate project and recompile it with the updated library dependencies. However, I was able to download the modified libraries from the cuyahoga SVN (https:// cuyahoga.svn.sourceforge.net/svnroot/cuyahoga/trunk). Replaced all of the original DLLs with the new ones (Castle.Core.dll, Castle.DynamicProxy2.dll, Iesi.Collections.dll, log4net.dll, NHibernate.dll, NHibernate.ByteCode.Castle.dll) and Shazaam!!! You'll still need to add <reflection-optimizer use="false" /> to the config for hosts that don't allow reflection, but at least your apps will work. I'm 99.9% sure that NHibernate has lost potential developers because of this (it almost lost me and probably would have if I didn't find Martijn's blog entry). I suggest someone with commit rights look at what was done and get this up in the downloadable zip on the front page, pronto! Have a good one! Sam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
