Which IOC Container runs in medium trust
Asked Answered
I

3

6

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

Insurrection answered 4/2, 2010 at 15:23 Comment(1)
EDIT After looking at my options I decided to go down the unity route. Once I got my head around the docs and found some examples I have it workingInsurrection
R
3

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

Rescue answered 4/2, 2010 at 15:37 Comment(1)
Ninject 2 is my favorite. Unity and AutoFac also both work in medium trust.Tarpon
G
1

Shameless plug: Simple Injector runs in Medium Trust!

Grampositive answered 9/2, 2010 at 16:46 Comment(1)
Is this a shamless plug! :) +1 Thanks for this, I will have a lookInsurrection
T
0

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

Totemism answered 1/6, 2011 at 14:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.