The type or namespace IHttpActionResult not found

前端 未结 11 2019
小鲜肉
小鲜肉 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:16

    I had a similar problem when I checked out a project from my source control.

    I had the reference to Microsoft ASP.NET Web API 2 in the project but i still couldn't compile the project.

    The solution was to re install the package using the Package Manager Console:

    PM> update-Package Microsoft.AspNet.WebApi –reinstall

提交回复
热议问题