Which IOC Container runs in medium trust

◇◆丶佛笑我妖孽 提交于 2019-12-01 01:56:32

问题


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

  1. Does Castle Windsor run under medium trust?
  2. 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)
  3. Or is there another IOC that I can use that I can download and works in Medium Trust?

Thanks


回答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

A good Bingoogleable keyword is AllowPartiallyTrustedCallersAttribute




回答2:


Shameless plug: Simple Injector runs in Medium Trust!




回答3:


The repository has moved, you can find all new links here now http://www.castleproject.org/git.html



来源:https://stackoverflow.com/questions/2200810/which-ioc-container-runs-in-medium-trust

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!