Deployment Of ASP.NET Core Application In Windows Server IIS
This article will describe a method with necessary steps to deploy ASP.NET Core Application in Windows Server IIS. Prerequisites First, we need to install prerequisites to host an ASP.NET Core App in Server IIS. Install .NET Core Hosting Bundle Installer in your Server where you are going to deploy the solution. For more information and details, please visit the current .NET Core Hosting Bundle installer
After installation of the .NET Core Hosting Bundle. Open IIS in your server, go to Application Pool and right click, then click on Add Application Pool.
Give the application Pool Name: ASP.Net Core Pool, .NET CLR version: to No Managed Code Manage, pipeline mode: to Integrated, then click on OK.
Go to sites, right-click on it, and click on Add Website.
After that, the following screen will pop up. Fill out the site name and click on Select for Application Pool value selection.
Clicking on Select will bring you to another screen to select the Application pool. Select ASP.Net Core Pool in Application Pool value and click OK.
Choose a Physical Path as depicted below, provide the port number and then click on OK.
Website testdemo is added to IIS.
Right Click on Testdemo and click on Explore. It will open the physical location of the site.
Go to the physical path/location and copy-paste all of your ASP.NET Core application’s published files there. After copying the published file, Restart IIS.
Now, open the application in the browser by clicking on Browse, as shown below.
This article described all the necessary steps to deploy an ASP.NET Core application in Windows Server IIS.