Unity.WebApi | Make sure that the controller has a parameterless public constructor

前端 未结 6 496
独厮守ぢ
独厮守ぢ 2020-12-19 10:48

I am using the Unity.WebApi NuGet package (Unity 4.0.1 and Unity.WebApi 5.2.3) in an ASP.NET WebApi solution. The issue I am facing is that when attempting to run the code,

6条回答
  •  -上瘾入骨i
    2020-12-19 11:48

    Be sure that any nested types which are also injected are being resolved correctly. You will get error message on the controller level even if nested types are resolved incorrectly.

提交回复
热议问题