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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With