博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Chrome+Visual Studio中调试asp.net程序很慢的问题(Firefox也有类似问题)
阅读量:4943 次
发布时间:2019-06-11

本文共 1973 字,大约阅读时间需要 6 分钟。

今天开始起在Chrome中调试,发现问题主要出在菜单栏(layout文件)中,google了一番,查到很多原因,不过最终解决方法倒是很简单,特此分享一下:

 

在C:/Windows/System32/drivers/etc里边有一个hosts文件,用记事本打开,里边最后几行原来是:

 

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

 

 

删掉127前面的#,改成:

 

# localhost name resolution is handled within DNS itself.

 127.0.0.1       localhost
# ::1             localhost

 

立竿见影。

 

原文载于,重点内容直接摘录

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 would usually take up to 3 seconds (localhost) even without changing the source code (so it should be instantaneously, especially now that I’m using a SSD).

It appears that there is some kind of , 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): ()

# 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: 

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 its value to true.

4. Restart Firefox.

3. System wide-configuration (option 1):

netsh interface tcp set global autotuninglevel=disabled

4. System wide-configuration (option 2): 

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

 

点击下载免费的敏捷开发教材:《》

 

转载于:https://www.cnblogs.com/JPAORM/archive/2011/04/29/2510510.html

你可能感兴趣的文章
Quartz Core之CALayer
查看>>
java:一个项目的开发过程(转)
查看>>
express框架学习笔记
查看>>
操作系统下载路径
查看>>
网站开发 关于图片压缩 以及图片使用
查看>>
hive的count(distinct id)测试--慎用
查看>>
第九周周总结
查看>>
Logistic Regression
查看>>
8lession-基础类型转化
查看>>
FlashCS5作成SWC,在Flex4中使用(1)
查看>>
vue-cli目录结构及说明
查看>>
JS 数据类型转换
查看>>
WeQuant交易策略—RSI
查看>>
osgearth将视点绑定到一个节点上
查看>>
PHP 当前时间秒数+数值,然后再转换成时间。
查看>>
数据交互 axios 的使用
查看>>
bootloader,kernel,initrc
查看>>
Java中jshell脚本
查看>>
performSelector的方法
查看>>
redis
查看>>