I noticed that when I installed StructureMap from NuGet into my ASP.NET MVC3 project, Dave Ebbo\'s WebActivator package was also added as a dependency.
WebActivator prov
NuGet packages for DI containers in ASP.NET MVC 3 usually prefer to use WebActivator to avoid messing with any existing code that you might have in Application_Start
. Ninject uses exactly the same approach.
You can have multiple WebActivator.PreApplicationStartMethod
attributes in your application and prior to .NET 4.5 a single System.Web.PreApplicationStartMethodAttribute
.