以下はプロジェクト構造です。
- 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