This post has been migrated from www.experimentsincode.com, we apologise if some of the images or content is missing

This post has been migrated, original date 24 May 2009 Further to my last post on using the Castle Windsor Project to inject dependencies into your controllers you will also need to update the web.config. To do this find the line:
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler,
 System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Replace this line with line that refers to the WindsorControllerFactory:
<add verb="*" path="*.mvc" validate="false" type="Custom.Web.Mvc.WindsorControllerFactory, Custom"/>