These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: NHibernate and Medium Trust Level
PostPosted: Mon Apr 07, 2008 4:42 pm 
Newbie

Joined: Mon Apr 07, 2008 4:36 pm
Posts: 2
Hi!
I use NHibernate v. 1.2.1. As I understand it should be work with medium trust level, but not.
Can anyone help me? It not work or I'm do something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 4:20 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
You may be seeing problems with lazy loading and if you disable it I imagine it will work. It's because of restrictions on reflection, I believe.

There are workarounds that will allow you to use lazy loading in Medium Trust, but they take a little more effort.

See here:
http://blog.symbiotic-development.com/2 ... generator/

This is not a definitive answer to your problem, but maybe it will help.

Cheers,

Symon.

_________________
Symon Rottem
http://blog.symbiotic-development.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 5:50 am 
Newbie

Joined: Mon Apr 07, 2008 4:36 pm
Posts: 2
Thanks a lot. I will try this solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.