It needs the system.web.http.webhost which is part of this package. I fixed this by installing the following package:
PM> Install-Package Microsoft.AspNet.WebApi.WebHost
or search for it in nuget https://www.nuget.org/packages/Microsoft.AspNet.WebApi.WebHost/5.1.0
More Related Contents:
- Unauthorised webapi call returning login page rather than 401
- Set default global json serializer settings
- Why is my ClaimsIdentity IsAuthenticated always false (for web api Authorize filter)?
- How to add Web API to an existing ASP.NET MVC (5) Web Application project?
- Best practice to call ConfigureAwait for all server-side code
- Specifying a custom DateTime format when serializing with Json.Net
- How to get current user, and how to use User class in MVC5?
- Web API Put Request generates an Http 405 Method Not Allowed error
- prevent property from being serialized in web API
- How to update a claim in ASP.NET Identity?
- “There was an error running the selected code generator” in VS 2013 scaffolding
- HTTP 404 Page Not Found in Web Api hosted in IIS 7.5
- MVC web api: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- catch all unhandled exceptions in ASP.NET Web Api
- Using JSON.NET to return ActionResult [duplicate]
- Suppress properties with null value on ASP.NET Web API
- How to use a client certificate to authenticate and authorize in a Web API
- Order of execution with multiple filters in web api
- Manually set operationId to allow multiple operations with the same verb in Swashbuckle
- How to return a file using Web API?
- ASP.NET Core v2 (2015) MVC : How to get raw JSON bound to a string without a type?
- Log Queries executed by Entity Framework DbContext
- Could not load file or assembly ‘System.Web.Http 4.0.0 after update from 2012 to 2013
- POST string to ASP.NET Web Api application – returns null
- Why is this web api controller not concurrent?
- How to represent a month of checkboxes in an MVC model
- C# unsupported grant type when calling web api
- How to inject UserManager & SignInManager
- jQuery posts null instead of JSON to ASP.NET Web API
- Web API complex parameter properties are all null