While building your solution (Ctrl+Shift+B) in Visual studio you receive below errors-

The name ‘GlobalConfiguration’ does not exist in the current context

OR

GlobalConfiguration.Configure() not present after Web API 2

Fix:

–>Install the packageĀ Microsoft.AspNet.WebApi.WebHost using NuGet packages.

–>make sure packages.config hasĀ Microsoft.AspNet.WebApi.WebHost entry-

<package id=”Microsoft.AspNet.WebApi.WebHost” version=”5.2.6″ targetFramework=”net452″ />

–>ensure to include in Global.asax-

using System.Web.Http;