ASP.Net MVC and Web.API use two different dependency recognition frameworks .
Your problem is that you are trying to use Unity.WebApi.UnityDependencyResolver also for MVC controllers. To set unity right, follow the instructions below:
To get Unity to work with MVCs, those that come from Controller
For Unity to work with Web.API controllers, those that get the ApiController form
source share