Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web API Hosting

Is Windows Azure the only hosting option we have (other than "Selfhost") for the Web API? If not, where are the hosts that support Web API? Many Google searches only returned options for Self-hosting.

like image 727
Tommy Avatar asked Feb 14 '13 19:02

Tommy


People also ask

What is Web API hosting?

It means you can host a Web API in console application or windows service or OWIN or any other process that is managed by . NET framework. You need to do following steps in order to self-host a web API. Use HttpConfiguration to configure a Web API. Create HttpServer and start listening to incoming http requests.

Can we self-host Web API?

ASP.NET Web API does not require IIS. You can self-host a web API in your own host process. New applications should use OWIN to self-host Web API. See Use OWIN to Self-Host ASP.NET Web API 2.


2 Answers

Look at http://www.asp.net/hosting for an official list of partners. WebAPI can be hosted as part of ASP.NET it just requires .NET 4.0+.

Also look at http://www.asp.net/web-api/overview/hosting-aspnet-web-api for how to deploy a WebAPI to IIS.

like image 149
Dustin Kingen Avatar answered Oct 29 '22 05:10

Dustin Kingen


You can check this:

Free hosting at Somee.com

Pros: It supports MVC, Ajax and few other techs.

Cons: Server sometime go down without notice for short-time.

Hope this helps.

like image 25
Catalyst Avatar answered Oct 29 '22 05:10

Catalyst