So I have the exact opposite problem: MVC5, Web API 2, and Ninject
I have a new MVC5 / WebAPI2 project that has both a "Controller" and an "ApiControllers".
I use the latest unstable version of Ninject.Web.WebAPI without changing the code for NinjectDependencyResolve.cs and Ninject.WebCommom.cs (in addition to binding to my dependency), the injection of the ApiController constructor works. However, when I call the MVC controller, I get:
There is no constructor without parameters for this object.
dependency-injection asp.net-mvc-5 ninject asp.net-web-api2
Tim Feb 11 '14 at 20:10 2014-02-11 20:10
source share