Visual Studio IIS Express uses domain names to debug MVC programs

Source: Internet
Author: User

1. Edit the ApplicationHost.config file

Launch vs2013, right-click on the IIS Express icon in the lower right corner, display, click on the Box menu.

Locate your startup entry, click 1, and then click 2, which is supposed to have an editor open applicationhost.config file. If you do not copy it, edit it.

Use Find, enter your startup item, and edit it in bindings, as I want to modify to *:80:xinxinran.me

2. Modify the Hosts file.

Modify the C:\Windows\System32\drivers\etc\hosts file

Open with editor: 127.0.0.1 xinxinran.me

Change the xinxnran.me to your domain name.

3. Turn off your VS and run vs as an administrator. Opens the project, appears, then indicates success

4. Note that if you have an IIS server installed, you need to stop or delete the 80-port website, otherwise you will not be able to use port 80.

Reference: Http://stackoverflow.com/questions/4709014/using-custom-domains-with-iis-express

Visual Studio IIS Express uses domain names to debug MVC programs

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.