does nhibernate work with medium trust out of the box?

后端 未结 2 1449
一整个雨季
一整个雨季 2020-12-29 16:24

will nhibernate work under medium trust out of the box?

相关标签:
2条回答
  • 2020-12-29 17:02

    The answer to your question is NO.

    Have a look at this post to find out what you need to do exactly in order to have NHibernate running in a medium trust web environment: http://nhforge.org/wikis/howtonh/run-in-medium-trust.aspx

    0 讨论(0)
  • 2020-12-29 17:19

    Castle DynamicProxy2 dll needs to be updated to work with medium trust. Check this link

    EDIT

    With the solution above, you DON'T need to disable ANYTHING in NHibernate, including Lazy Loading. DynamicProxy2 just won't generate .pdb files on the fly, making everything run smoothly on medium trust.

    0 讨论(0)
提交回复
热议问题