How To Publish A Website On IIS From Visual Studio
First of all create a website on IIS as shown in following link.
Now, Run Visual Studio as Administrator.
Open a Build Free Web Project For Publishing on IIS.
On Solution Explorer, right click and select Publish Link as shown in the figure.
A new window will be opened where you have many side tabs available.
On Profile Side Tab, Select the Dropdown and Click on the New Profile Link.
Type a name and then press OK to create a New Profile.
Then Click on the Side bar Link Connection.
There will be having two entries that you needs to select.
Publish Method & Target Location.
From Publish method dropdownlist select File System.
For Target Location, Click on the browse button.
Then a new window will be opened as shown in the figure.
From left panel select Local IIS. Then Select the IIS Site from the list that you have already
created earlier ( http://www.technomark.in/Host-A-Website-On-IIS.aspx )
Then Press Open Button. This will close the new Window.
Now Press the Side bar Tab Settings.
From Configuration dropdown, select Release or Debug. I would prefer Release for final delivery.
There is another check box available Delete All Existing Files Prior To Publish
on File Publish Options.
Now Press Next Button for getting the Preview of what you done till now.
If everything is good enough, click on the Publish Button.
On Output Window, Publish Succeeded message will be shown if published to the IIS.
On IIS, select the website and press the browse link on the Action panel.
Your App will be opened in a browser.