In this tutorial let us go through steps of hosting asp.net website on IIS(Internet Information Services). In this tutorial I am hosting mvc website on IIS which is installed on local machine.
Steps to Host .net Website on IIS (Internet Information Services)
Step 1: To open IIS in command prompt type “inetmgr” as shown in below screenshot:
Step 2: In IIS right click on Sites option and then select Add Website as shown below:
Step 3: In Add Website Dialog window enter name for new website, In Physical path browse for the location of website on computer which you want to host. In Port number specify port on which site to be hosted, default port number is 80.
Step 4: After doing setting as mentioned in step 3 click on Ok button:
Step 5: Now site is added into IIS, to run site on browser right click on website and then select Manage Website->Browse as shown below:
If everything is configured correctly, then site will be hosted on IIS. Now you will be able to run asp.net website from IIS.