Problem Analysis of Using Fiddler to debug multiple visual studion virtual sites

Source: Internet
Author: User

1: The URL behavior caused by localhost. is inconsistent with 127.0.0.1.

The local agent cannot be used. The problem of local debugging failure is not a BUG. Microsoft has provided an official explanation, which is due to IE browser and.. NET Framework does not take proxy for local requests, so Fiddler cannot detect data. Therefore, adding a. symbol to the local address causes inconsistent URL behavior.

When the current Context. Request. URL is retrieved, the system automatically ignores the. symbol in the address, which leads to inconsistent URL encoding;

2: target machine actively refused it (the target address is actively rejected)

Enable IPV6 of Filddler Option is canceled.

3: modifying the inconsistent URL behavior caused by Custom Rules

Solve the problem in 1, must use Custom Rules, the relevant information corresponds to: http://fiddler2.com/documentation/KnowledgeBase/FiddlerScript/ModifyRequestOrResponse

My solution corresponds to two virtual sites. The change policy for Fiddler is as follows:

If (oSession. host = "aaa: 22222 "){
OSession. host = "127.0.0.1: 22222 ";
}

If (oSession. host = "aaa: 22222 "){
OSession. host = "127.0.0.1: 22222 ";
}

Of course, this solution does not mean that the URL aaa is obtained, but localhost. That is, the URL behavior inconsistency still exists.

4: Set the site to "Use Local iis web server"

In VS, the debugging site is not the development server, but IIS. Enter the URL as the local IP address, for example, http: // 192.168.80.1 /. Well, all of this can only blame IE for having no proxy for the local address. Because we know that when Fiddler is enabled, it is actually set to use its own proxy for ie.

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.