Creating controllers using Castle Windsor Project - Part 2

Published by on
Tags:

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

 

Projects

Have you read?

Visual Studio Hangs - Auto-Recover problem



Blogs by date