I recently began working on the new version of this blog which will be built with ASP.NET MVC. One of the first things I set out to do was to implement a custom controller factory which uses the IoC container StructureMap to resolve dependencies and instantiate controllers.