NHibernate的2.1.2中等信任 [英] NHibernate 2.1.2 in medium trust

查看:199
本文介绍了NHibernate的2.1.2中等信任的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想配置NHibernate的2.1.2在中等信任运行,没有任何运气。我曾尝试follwing建议在中等信任和发电运行前代理服务器

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.

然后我试图消除延迟加载设置默认为lazy =false的所有类和包的所有引用。然而,这引发了异常问我配置proxyfactory.factory_class

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

这些methds没有合作,他们不停地抛出通用安全性异常或抛出easying,图书馆不允许AllowPartiallyTrustedCallers。

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

我使用NHibernate的版本错误,如果我想在中等信任运行吗?

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.

更新:

我设法得到这种使用中提到的步骤来在通过卡尔提到href=\"http://www.mail-archive.com/castle-project-users@googlegroups.com/msg05996.html\" rel=\"nofollow\">城堡项目的邮件列表。
除了这个,我不得不禁用调试信息的生成的城堡和NHibernate库。我写了一个快速指导,我采取的步骤可以找到的
此处

I managed to get this to work using the steps mentioned on the castle project mailing list mentioned by carl. In addition to this I had to disable the generation of debug information for the castle and nhibernate libraries. I wrote a quick guide to the steps I took which can be found here

推荐答案

我也在寻找一个解决这个问题。提出的一种解决我遇到,这里,是让城堡核心,城堡动态代理,和NHibernate和重新编译他们都(新引用一个与另一个[装配:AllowPartiallyTrustedCallers]有谁知道这是要走的路(我还没有来得及试试这个我自己)?

I am also looking for a solution to this problem. One proposed solution I've come across, here, is to get castle core, castle dynamic proxies, and Nhibernate and recompile them all (with new references to one-another with [assembly: AllowPartiallyTrustedCallers]. Does anyone know if this is the way to go (i haven't had time to try this myself)?

这篇关于NHibernate的2.1.2中等信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆