Ninject in ASP.NET MVC4

前端 未结 8 1947
终归单人心
终归单人心 2021-02-07 03:19

So after much screwing around I finally got Ninject wired in and compiling in my MVC4 application. The problem I was running into is the IDependencyScope interface no longer ex

8条回答
  •  甜味超标
    2021-02-07 03:53

    Just delete NinjectWebCommon.cs file from your project (it is in App_Start folder). and everything should be working.

    Source: http://mlindev.blogspot.com.au/2012/09/how-to-implement-dependency-injection.html

提交回复
热议问题