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

前端 未结 17 1499
猫巷女王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:18

    I was able to resolve this issue in an MVC5 web project by removing an #if #endif directive from my controllers constructor.

提交回复
热议问题