How to host website on IIS

In this tutorial let us go through steps of hosting 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:

Inetmgr option to open IIS

Step 2: In IIS right click on Sites option and then select Add Website as shown below:

Add Website option in IIS

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.

Physical path of website on IIS hosting

Step 4: After doing setting as mentioned in step 3 click on Ok button:

Port number for website in IIS

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:

how to open website in browser from IIS

If everything is configured correctly, then site will be hosted on IIS. Now you will be able to run website from IIS.


How to Solve Http Error 503 Service Unavailable

In this article we will go through the steps which are required to solve Http Error 503 service unavailable on IIS. One possible reason due to which 503 error is coming up due to app pool is stopped on IIS.

Http Error 503

Steps to resolve HTTP Error 503 on IIS:

Step 1: Open IIS and right click on website which is throwing Error 503 and then select the option Advanced Settings as shown in below screenshot:



Step 2: In Advanced Settings check out the App Pool name of the website and then close this window as shown below:

How to check app pool of website in IIS

Step 3: Now as you know app pool associated with your website. Select the option Application Pools in IIS. This option will list out all the app pools for the website which are hosted on IIS. Notice that app pool of your website which is throwing error 503 service unavailable is stopped. Right click on the App Pool name of the website and then select Start as shown below:

Start app pool to resolve Http Error 503


Open the website in browser and you will see that site is coming up fine. By using these steps you can resolve Http Error 503. Let me know in comment section if you face any difficulty.