In this tutorial I will explain how
to publish website in local machine.First you will need to check IIS is
installed on your local machine or not.Now open your application in visual
studio we need to publish on local machine.
- Open the website goto “menu”, select “Build” and click on “Publish Web Site”.
Now
open one wizard in that it will put target location i.e., the place to save the
published application (ex: Create one folder on desktop or any other location give
that path by using browse button beside of that textbox).
- Now click on “OK” publish it all the files into target location.
- Now go to the location folder copy that folder and put it in wwwroot folder(path of that folder is C:\Inetpub\wwwroot)
- Now open the Run in Start Menu or keyboard shortcut (Window Key + R) and type inetmgr and Click Enter it will redirect to IIS
- Open the Sites after that open the Default web site in that you will find your published website because you have already placed in wwwroot folder.
- Click on right side of your website it will display all of your published pages select whatever the page first you need to run right click on that and click browse it will display your published website.
Now your website is published on
your local computer.