-
Install latest Visual Studio IDE - Download Page
-
Creating Demo Application
- Open Visual Studio editor and select File -> New -> Project
- Select ASP.NET Core Web App. Provide Project name and Location. Keep rest of the options to default.
- It will create a sample application with default pages.
- To run application on port 5100, update applicationUrl parameter in below file, ** /Properties/launchSettings.json
-
Packaging the application
- This step will create the package of the application that we have created.
- Create a new folder where we can create the application package files
- From Visual Studio menu select Build-> Publish -> New -> Folder.
- select the folder created for packaging. This will create a publish profile.
- Click on Publish button. This process will generate files for deployment.
- Follow the steps to install IIS on Windows server - Link
- Install ASP.NET Core runtime - Download link
- Opening port 5100 through firewall
- Open Windows Defender Firewall -> Click Advanced Settings -> Inbound Rule.
- Create new Rule -> Select Port -> provide port as 5100 -> Keep all other settings to default.
- Provide a name to this rule.
- Create a folder under C:/inetpub/<project_name>
- Copy the contents of the package folder created in previous step under this folder
- Open IIS Server -> Under Connections -> Add Website
- Provide application name in Site name
- Select Physical path as C:/inetpub/<project_name>
- Set port to 5100, click ok