In the Package Manager Console window, enter the following command: Install-Package Microsoft.AspNet.WebApi.OwinSelfHost This will install the WebAPI OWIN selfhost package and all the required OWIN packages. Configure Web API for self-host In Solution Explorer, right-click the project and select Add / Class to add a new class.