6

嗨,我正在尝试使用 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. 温莎城堡是否在中等信任下运行?
  2. 我可以下载 DLL 而无需使用 nant 重新编译吗?(因为我没有这个设置并且根本不知道 nant)
  3. 或者是否有另一个我可以使用的 IOC 可以下载并在 Medium Trust 中工作?

谢谢

4

3 回答 3

3

温莎的立场似乎在这里被记录/讨论

林福好像

StructureMap 似乎从 2.5 开始SM 2.6 没有 Reflection.Emit

一个好的 Bingoogleable 关键字是AllowPartiallyTrustedCallersAttribute

于 2010-02-04T15:37:46.007 回答
1

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

于 2010-02-09T16:46:23.500 回答
0

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

于 2011-06-01T14:13:58.457 回答