VS ~ Enable & quot; Domain Name & quot; debugging through the IIS website

Source: Internet
Author: User

When developing websites and serializing certain information, we usually use session, cookies, nosql, and other technologies to ensure security, we have designed to prevent leeching in many cases on the server, which makes debugging on the local machine inconvenient, because the local machine is debugged using localhost: port number,
Website information is generally a formal domain name. After leeching starts, you cannot obtain it during local debugging. In VS2012, I used the "Debug by domain name" Method for the first time, which has brought us a good news for developing complex websites!

The following describes how to debug the domain name.

Set your domain name in a HOSTS file

127.0.0.1 dev.test.com

2. Create a domain name URL in IIS and set the address to the address of the VS Project

3. Modify the Project Properties of,

Four major achievements

Remote CDN resources are accessible because they are in the same domain.

Related Article

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.