NHibernate 2.1.2 in medium trust.

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-26T10:26:01Z Indexed on 2010/03/26 10:33 UTC
Read the original article Hit count: 574

Filed under:
|
|
|

I'm trying to configure nhibernate 2.1.2 to run in medium trust, without any luck. I have tried follwing the suggestions to run in medium trust and pre-generating the proxies.

I then tried to remove all references to lazy loading setting the default-lazy="false" on all classes and bags. However this threw an exception asking me to configure the proxyfactory.factory_class

None of these methds worked as they kept throwing generic security exceptions or throwing easying that libraries do not allow AllowPartiallyTrustedCallers.

Am I using the wrong version of NHibernate if I want to run in medium trust?

Is there a specific set of binaries, or source, which I should be using.

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about medium-trust