Deployment Of ASP.NET Core Application In Windows Server IIS

Introduction

 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

Steps

 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. 

Deployment of ASP.NET Core Application in Windows Server IIS

 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. 

Deployment of ASP.NET Core Application in Windows Server IIS

 Go to sites, right-click on it, and click on Add Website. 

Deployment of ASP.NET Core Application in Windows Server IIS

 After that, the following screen will pop up. Fill out the site name and click on Select for Application Pool value selection. 

Deployment of ASP.NET Core Application in Windows Server IIS

 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. 

Deployment of ASP.NET Core Application in Windows Server IIS

  Choose a Physical Path as depicted below, provide the port number and then click on OK. 

Deployment of ASP.NET Core Application in Windows Server IIS

 Website testdemo is added to IIS. 

Deployment of ASP.NET Core Application in Windows Server IIS

 Right Click on Testdemo and click on Explore. It will open the physical location of the site. 

Deployment of ASP.NET Core Application in Windows Server IIS

 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. 

Deployment of ASP.NET Core Application in Windows Server IIS

 Now, open the application in the browser by clicking on Browse, as shown below. 

Deployment of ASP.NET Core Application in Windows Server IIS

Conclusion

 This article described all the necessary steps to deploy an ASP.NET Core application in Windows Server IIS.

Dawood Ahmad

A Multi-Talented & Tech Enthusiast with a passion for software engineering; A Qualified IT & Computers Professional with 2+ years of impeccable experience as Web Developer & Team Lead. Microsoft Certified Trainer & Solutions Developer, Able to work under pressure & deliver projects on time with maximum output, adhering to budgets. Ability to Aim High, Think Smart & Act Fast in Deadline Oriented Situations. Looking forward to developing myself as Team Lead Web Developer to utilize my skills & expertise with maximum potential.

Leave a Reply

Your email address will not be published.