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

后端 未结 3 1756
时光取名叫无心
时光取名叫无心 2021-02-12 04:14

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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-12 04:40

    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.

提交回复
热议问题