Follow the below step for hosting an ASP.NET web application on IIS Server.
- Open IIS.
- Right-click the Sites and click "Add Web Site".
Enter the name, physical path, and the IP Address type for your machine.
- Refresh the site.
- Select Application Pools and select your created site followed by a right-click on "Basic settings".
- Choose .Net framework version v4.3
- Open your Solution.
- Select Build tool -->click Publish.
- Set a Publish name.
- Choose the publish method as "File System".
- Target the location as you have given in IIS physical path. Finally, click "Publish".
Your site is published now.