Skip to content

rakesh-kanchalwar/Asp.net_bootcamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to create and deply ASP.NET app on Windows server 12

Creating Application

Prerequisite

  • 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.

Deploying Application

Prerequisite

  • 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.

Deploying application

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published