Header add

In this article we will learn about the most asked question solution Is it possible to self-host an ASP.NET Core Application without IIS.  

In general, to deploy an ASP.NET Core app to a hosting environment:
  • Deploy the published app to a folder on the hosting server.
  • Set up a process manager that starts the app when requests arrive and restarts the app after it crashes or the server reboots.
  • For configuration of a reverse proxy, set up a reverse proxy to forward requests to the app.


Is it possible to self-host an ASP.NET Core Application without IIS

Yes it is possible. In fact, all ASP.NET Core applications are self-hosted. Even in production, IIS/Nginx/Apache are a reverse proxy for the self-hosted application.


In a reasonably standard Program.cs class, you can see the self-hosting. The IISIntegration is optional - it's only necessary if you want to integrate with IIS.





Note : Self-hosting web application can't restart automatically on system boot and restart or in the event of a failure.

ASP.NET 5 is completely decoupled from the web server environment that hosts the application. ASP.NET 5 supports hosting in IIS and IIS Express, and self-hosting scenarios using the Kestrel and WebListener HTTP servers. Additionally, developers and third party software vendors can create custom servers to host their ASP.NET 5 apps.

Post a Comment

Previous Post Next Post