ASP.NET MVC Website Hosting : Publish To IIS

Follow the below step for hosting an ASP.NET web application on IIS Server.
  1. Open IIS.

     

  2. Right-click the Sites and click "Add Web Site".



    Enter the name, physical path, and the IP Address type for your machine.

  3. Refresh the site.

  4. Select Application Pools and select your created site followed by a right-click on "Basic settings".

  5. Choose .Net framework version v4.3

     

  6. Open your Solution.

  7. Select Build tool -->click Publish.

  8. Set a Publish name.

  9. Choose the publish method as "File System".

     

  10. Target the location as you have given in IIS physical path. Finally, click "Publish".

    Your site is published now.