The type or namespace IHttpActionResult not found

前端 未结 11 2008
小鲜肉
小鲜肉 2021-01-31 14:04

This is the first time I am creating a Web API application in ASP.NET MVC4. I opened a new Web API project and added a new controller named \'Product\'. The function given below

11条回答
  •  孤街浪徒
    2021-01-31 14:33

    This solution worked for me:
    Tools – > Library Package Manager -> Package Manager Console, then type:
    Install-Package Microsoft.AspNet.WebApi -Version 5.0.0
    update-Package Microsoft.AspNet.WebApi –reinstall
    Reference: http://blog.bitlinkit.com/type-namespace-ihttpactionresult-not-found/

提交回复
热议问题