以下是项目结构:
- MVC 4 应用程序 1) 项目适用于具有控制器注入接口的 MVC。2)接口存在于这个应用程序中。
- 经理图书馆项目。1) 项目包含 MVC 应用程序的引用。2) 将每个接口实现到这个程序集中。3) NinjectMOdule 存在于该项目中,其中与相关管理器类绑定接口。
问题:无法将注入的类注入 Web 应用程序。
它给出以下错误:
Error No matching bindings are available, and the type is not self-bindable.
Activation path:
2) Injection of dependency ILeadInformation into parameter leadInformation of constructor of type HomeController
1) Request for HomeController