Why is CastleWindsor's BeginScope out of scope?
I'm trying to add Castle Windsor to my Web API project, and am following this post , but am getting a compile-time error on this line of code: this._scope = container.BeginScope(); ...as " 'Castle.Windsor.IWindsorContainer' does not contain a definition for 'BeginScope' and no extension method 'BeginScope' accepting a first argument of type 'Castle.Windsor.IWindsorContainer' could be found (are you missing a using directive or an assembly reference?) " Here is the entire code so that it can be seen in context: using System; using System.Collections.Generic; using System.Linq; using System.Web;