Debugging the Asp.net program in chrome + Visual Studio is slow (Firefox has similar problems)

Source: Internet
Author: User

Today, I started debugging in chrome. I found that the problem mainly exists in the menu bar (layout file). Google found many reasons, but the final solution is very simple. I would like to share with you:

 

There is a hosts file in C:/Windows/system32/Drivers/etc, which is opened in Notepad. The last lines in it are:

 

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

 

 

Delete the # Above 127 and change it:

 

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

 

Immediate effect.

 

The original text is in workshop

While developing an ASP. net website running it on the Visual Studio ASP. NET development server I was noticing that page loads exceedingly slowly in Firefox and Google Chrome after upgrading to Windows 7 (same issue occurs with Windows Vista ).

A page refresh wocould usually take up to 3 seconds (localhost) even without changing the source code (so it shoshould be instantaneously, especially now that I'm using a SSD ).

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

1. Recommended solution-machine wide: Uncomment the localhost address in the hosts file (% WINDIR %/system32/Drivers/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. disable00006.

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

4. Restart Firefox.

3.System Wide-configuration (option 1 ): Disable 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 have accessed the registry, you will 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

 

Click to download the free agile development textbook: Martian agile development manual

 

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.