Debugging a slow problem with ASP. NET program in Chrome+visual Studio (Firefox has a similar problem)

Source: Internet
Author: User

Debugging a slow problem with ASP. NET program in Chrome+visual Studio (Firefox has a similar problem)

Starting today to debug in chrome, found that the problem is mainly in the menu bar (layout file), Google for a number of reasons, but the final solution is very simple, so share:

Inside the c:/windows/system32/drivers/etc there is a Hosts file, opened with Notepad, the last few lines in the original is:


# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
#:: 1 localhost

Delete the # in front of 127 and change it to:

# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
#:: 1 localhost

Immediate.

The original text is contained in http://www.wagnerdanda.me/2009/12/asp-net-development-server-slow-on-windows-vista7-with-firefox-or-chrome/, the key content extracts directly

While developing an ASP. Website running it on the Visual Studio ASP Development Server I was noticing that page Lo Ads exceedingly slowly in Firefox and Google Chrome after upgrading to Windows 7 (same issue occurs with Windows Vista).

A page refresh would usually take up to 3 seconds (localhost) even without changing the source code (so it should is Insta ntaneously, especially now that I ' m using a SSD).

It appears that there is some kind of the bug on Vista/windows 7 with DSN and IPV6, but so can be easily fixed. Here is some of the solutions I have found:

1. Recommended solution–machine wide: Uncomment the localhost address in the Hosts file (%windir%/system32/driv ers/etc/hosts): (source)

# localhost name resolution is handled within DNS itself.

127.0.0.1 localhost

#:: 1 localhost

# localhost name resolution is handled within DNS itself.127.0.0.1 localhost#:: 1 localhost

2. firefox-only solution:disable IPv6

1. Type About:config in the Address bar and press Enter.

2. Scroll down until you find NETWORK.DNS.DISABLEIPV6.

3. Double-click on it-to-change their value to true.

4. Restart Firefox.

3. System wide-configuration (option 1):D isable IPv6 Random identifier

netsh interface tcp set global autotuninglevel=disabled

4.System wide-configuration (option 2): Disable IPv6 from Your LAN Interfaces and Connections

1. Launch Vista, click on Start, and then click on Run. Once The Run window appears, type regedit.

2. Once you has accessed the registry, you'll add a registry value as follows: (DWORD type) Set to Oxff.

3. The registry is as follows:hkey_local_machine/system/currentcontrolset/services/tcpip6/parameters/ DisabledComponents

Debugging a slow problem with ASP. NET program in Chrome+visual Studio (Firefox has a similar problem)

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.