【问题标题】:Which IOC Container runs in medium trust哪个 IOC 容器以中等信任运行
【发布时间】:2011-01-13 03:15:39
【问题描述】:

您好,我正在尝试使用 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

我的问题是

  1. Castle Windsor 是否在中等信任下运行?
  2. 我可以下载 DLL 而无需使用 nant 重新编译吗? (因为我没有这个设置并且根本不知道 nant)
  3. 或者是否有其他 IOC 可供我下载并在 Medium Trust 中使用?

谢谢

【问题讨论】:

  • EDIT 在查看了我的选项后,我决定走统一路线。一旦我了解了文档并找到了一些示例,我就可以使用它了

标签: .net inversion-of-control castle-windsor medium-trust


【解决方案1】:

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

一个好的 Bingoogleable 关键字是AllowPartiallyTrustedCallersAttribute

【讨论】:

  • 忍者 2 是我的最爱。 Unity 和 AutoFac 也都在中等信任下工作。
【解决方案2】:

无耻插件:Simple Injector 在中等信任中运行!

【讨论】:

  • 这是一个无耻的插件! :) +1 谢谢你,我会看看
【解决方案3】:

存储库已移动,您现在可以在这里找到所有新链接http://www.castleproject.org/git.html

【讨论】:

    猜你喜欢
    • 2017-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-18
    • 1970-01-01
    • 1970-01-01
    • 2012-01-31
    • 1970-01-01
    相关资源
    最近更新 更多