By default, developing a Web site in VisualStudio will run in iisexpress, what if you want to deploy the site to a local IIS server?
First, run VisualStudio as Administrator, or the following dialog will pop up when modifying the project properties, preventing us from modifying the server to local IIS.
Then, double-click the Properties icon, open the Web tab, set the server to local IIS, modify the project URL, name the custom,
can be saved successfully.
Second, configure IIS.
Open Local IIS. How to install IIS on WIN8, please check it yourself. Right-click Sites, add sites,
Modify the site name, physical path, and hostname, for example, the site name and host name are the same, and the URL is the same as the step one, and the physical path is the file path of the project. Click OK.
Third, modify the Hosts file and point the URL to this machine.
The Hosts file is located in the C:\Windows\System32\Drivers\etc directory, runs Notepad as an administrator, and opens the file with the following modifications:
Note that you must run as an administrator, or you cannot save after modification, and IP 127.0.0.1 is your host. The URLs in test.sharpl.com and one or two remain consistent.
Save, all steps completed.
Run the ASP. NET program, view the URL in the browser,
Perfect!
Source: http://www.cnblogs.com/SharpL/p/4610627.html
How to deploy an ASP. NET MVC project to local IIS