Using Fiddler to debug the problem analysis of visual Studion multiple virtual sites _ practical Tips

Source: Internet
Author: User

1:localhost. and 127.0.0.1. URL behavior Inconsistent

Unable to walk local agent, the problem that cannot be debugged locally is not a bug, Microsoft Official has explained, this is from IE browser and the. NET Framework for local requests is not agent, so fiddler cannot detect data. Then add the. symbol to the local address, which brings the problem of inconsistent URL behavior.

When you take the current Context.Request.URL, you will find that the system automatically ignores the. symbol in the address, which brings us inconsistent with the URL encoding;

2:target Machine actively refused it (active rejection of target address)

Filddler option's enable IPV6 cancellation.

3: Modify custom rules bring the URL behavior inconsistency

Solve 1 problem, must adopt custom Rules, relevant information: Http://fiddler2.com/documentation/KnowledgeBase/FiddlerScript/ModifyRequestOrResponse

For two virtual sites in my solution, change the policy for fiddler 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 is not to get the AAA this URL, but localhost., which is still the problem of inconsistent URL behavior

4: Set the site to "use local IIS Web server"

The site where debugging is set in VS is not development server, but IIS, where the URL is filled out as a local IP address, such as: HTTP://192.168.80.1/. Well, all of this, or can only blame IE on the local address does not go agent. Because we know fiddler opened, the actual is for IE set to go its own agent.

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.