Using Ninject with Asp.NET Web API Beta ApiController

前端 未结 5 520
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 22:33

I\'m stuck. I was using the method outlined here for wcf web api p6 Ninject working with WCF Web API Preview 5, however things are quite a bit different with the mvc implementat

5条回答
  •  情话喂你
    2021-01-31 23:00

    May sound silly but have you made sure you have a reference to the CommonServiceLocator / CommonServiceLocator.NinjectAdapter nuget package or associated assemblies. Your NinjectDependencyResolver may not be able to resolve the reference to IServiceLocator.

提交回复
热议问题