ASP.NET MVC 4 + Ninject MVC 3 = No parameterless constructor defined for this object

前端 未结 17 1501
猫巷女王i
猫巷女王i 2020-11-30 01:41

UPDATE - Please look at my answer for a link and explanation of the solution to this problem

Before we start, I know this is a very common quest

17条回答
  •  北海茫月
    2020-11-30 02:30

    Shortcut for all this: Download one of the following Nuget Pacakges:

    • Ninject.MVC3
    • Ninject.MVC5

    That will take care of the binding that you need.

提交回复
热议问题