Published by
on
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"/>
Add comment