0

以下はプロジェクト構造です。

  1. MVC 4 アプリケーション 1) プロジェクトは、コントローラーにインターフェイスが注入された MVC 用です。2) このアプリケーションにはインターフェースが存在します。
  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

4

1 に答える 1