I am creating an application using Ninject (MVC5 + WEBAPI). And having some problems figuring out which of the many answers explain the most advanced solution for integrating Ninject and WebApi. Therefore, I have the following packages installed:
- Ninject
- Ninject Integration for WebApi2
- Ninject.MVC5
- Ninject.Web.Common
- Ninject.Web.Common.WebHost
Some people suggest that my initial problem (Ninject does not allow instantiation of APIs) should be solved either:
- Installing another package (Ninject.Web.WebApi-RC, Ninject.WebAPI, etc.)
- Create your own dependency converter
- Installing the Ninject Owin Node
- Mix all of the above and hope that it finally works.
So, all what are packages? Also, do I need to use Owin hosting? I received the message “Could not find the Ninject.Web.WebApi package” from the nuget console, so I assume that this no longer exists?
Thanks.
asp.net-web-api asp.net-mvc-5 ninject asp.net-web-api2
Ernesto
source share