Ninject + MVC3 = InvalidOperationException: Sequence contains no elements

前端 未结 7 838
借酒劲吻你
借酒劲吻你 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:28

    Wanted to add one more cause ...

    We installed the Ninject.MVC3 package to multiple projects - only one of which was an actual MVC applicaiton. However, we forgot to remove the App_Start folder.

    Removing the App_Start folder from the referenced project resolved the issue.

    0 讨论(0)
提交回复
热议问题