How to deploy an ASP. NET MVC project to local IIS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.