WebAPI found reference error when I have the assembly

Solution 1:

A forced reinstall of WebAPI could do the job:

 update-package microsoft.aspnet.webapi -reinstall

Solution 2:

I did:

get-project <project_name> | uninstall-Package Microsoft.AspNet.WebApi.WebHost -force

Then reinstalled (with specific version consistent with those in other projects)

get-project <project_name> | install-Package Microsoft.AspNet.WebApi.WebHost -Version 5.2.2

This solved the problem for me.

Solution 3:

I uninstall some nuget packages in my project, including the MVC, and install all over again. Resolved. Thanks everybody for help me.

Solution 4:

Update Your NuGet Packages. Worked for me.