2
votes

I am creating an asp.net web api project. I am using Ninject for dependency resolver. I am adding Ninject.Web.WebAPI from nuget. But I don't find any NinjectWebCommon.cs in my App_Start folder

Do i need to install any aditional package??

1

1 Answers

0
votes

Install Ninject.Web.WebApi.WebHost if you are hosting the WebApi project via IIS - this will create NinjectWebCommon.cs.

See the wiki for more info on different types of WebApi projects. https://github.com/ninject/Ninject.Web.WebApi/wiki/Setting-up-an-mvc-webapi-application