Set Copy Local
to true
in the properties for the System.Web.Http
and System.Web.Http.WebHost
assemblies and redeploy the package.
If this doesn’t solve your problem completely try reinstalling the NuGet package. This will hopefully correct broken dependencies. From the package management console, run this command:
Update-Package Microsoft.AspNet.WebApi -reinstall
Make sure to install System.Web.Http.WebHost
as well.