哪个 IOC 容器以中等信任度运行
您好,我正在尝试运行一个使用 Mosso 运行的网站,该网站将温莎城堡作为我的 IOC,但是我收到以下错误。
[SecurityException: That assembly does not allow partially trusted callers.]
GoldMine.WindsorControllerFactory..ctor() in WindsorControllerFactory.cs:33
GoldMine.MvcApplication.Application_Start() in Global.asax.cs:70
我的问题是
- 温莎城堡是否在中等信任度下运行?
- 我可以下载 DLL 而无需使用 nant 重新编译吗? (因为我没有这个设置,根本不知道 nant)
- 或者是否有另一个我可以使用的 IOC,我可以下载并在 Medium Trust 中工作?
谢谢
Hi I am trying to get a website running with Mosso that has Castle Windsor as my IOC, however I am getting the following error.
[SecurityException: That assembly does not allow partially trusted callers.]
GoldMine.WindsorControllerFactory..ctor() in WindsorControllerFactory.cs:33
GoldMine.MvcApplication.Application_Start() in Global.asax.cs:70
My questions are
- Does Castle Windsor run under medium trust?
- Can I download the DLL's without having to recompile with nant? (as I don't have this set up and don't know nant at all)
- Or is there another IOC that I can use that I can download and works in Medium Trust?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
温莎立场似乎已在此处进行了说明/讨论
林甫似乎
StructureMap 似乎从 2.5 开始。 SM 2.6 没有 Reflection.Emit
一个好的 Bingoogleable 关键字是
AllowPartiallyTrustedCallersAttribute
The Windsor stance seems to be doc'd / discussed here
LinFu seems to
StructureMap seems to as of 2.5. SM 2.6 has no Reflection.Emit
A good Bingoogleable keyword is
AllowPartiallyTrustedCallersAttribute
无耻的插件:Simple Injector 在中等信任度下运行!
Shameless plug: Simple Injector runs in Medium Trust!
存储库已移动,您现在可以在这里找到所有新链接 http://www.castleproject.org/git。 html
The repository has moved, you can find all new links here now http://www.castleproject.org/git.html