哪个IOC容器以中等信任度运行 [英] Which IOC Container runs in medium trust

查看:113
本文介绍了哪个IOC容器以中等信任度运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以温莎城堡作为我的IOC的Mosso网站,但是出现以下错误。

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

我的问题是


  1. 温莎城堡是否在中等信任下运行?

  2. 是否可以在不使用nant进行重新编译的情况下下载DLL? (因为我没有此设置,根本不了解nant)

  3. 或者还有另一个我可以使用的IOC,可以下载并在Medium Trust中使用吗?

谢谢

推荐答案

温莎的立场似乎将在此处进行记录/讨论

林富似乎

StructureMap似乎自2.5 SM 2.6没有Reflection.Emit

一个不错的Bingoogleable关键字是 AllowPartiallyTrustedCallersAttribute

A good Bingoogleable keyword is AllowPartiallyTrustedCallersAttribute

这篇关于哪个IOC容器以中等信任度运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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