Ninject + MVC3 = InvalidOperationException: Sequence contains no elements

前端 未结 7 874
借酒劲吻你
借酒劲吻你 2020-12-04 18:37

I created a new MVC3 project, hit F5, saw the sample page.

Then I used NuGet to get the Ninject.MVC extension. I modified my global.asax according to the Ninject doc

7条回答
  •  独厮守ぢ
    2020-12-04 19:23

    My solution was that I had set the App_Start folder property, Namespace Provider to True.

    I had changed this to False so that Resharper wouldn't highlight the namespace NOT matching the folder structure.

提交回复
热议问题