How do I work with Ninject in an ASP.NET MVC Web App?

后端 未结 3 1528
别那么骄傲
别那么骄傲 2021-02-12 03:54

I\'ve created a new MVC Web application and I have references to Ninject.dll, Ninject.Web.Common.dll and Ninject.Web.MVC.dll.

Global.asax.cs:

         


        
3条回答
  •  清酒与你
    2021-02-12 04:39

    You are deriving from NinjectHttpApplication AND you are using App_Start at the same time. Choose one! Read the docu of Ninject.MVC3 for more info.

提交回复
热议问题