今天开始起在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

立竿见影。

原文载于http://www.wagnerdanda.me/2009/12/asp-net-development-server-slow-on-windows-vista7-with-firefox-or-chrome/,重点内容直接摘录

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 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.disableIPv6.

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

点击下载免费的敏捷开发教材:《火星人敏捷开发手册》

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

在Chrome+Visual Studio中调试asp.net程序很慢的问题(Firefox也有类似问题)相关推荐

  1. Visual studio 中调试ASP程序、Javascript 代码 - 刘稻博客

    2019独角兽企业重金招聘Python工程师标准>>> PS: 1.在调试asp时,要先附加进程(附加到:自动:与具体调试网站对应的 dllhost.exe 或 w3wp.exe . ...

  2. 在Visual Studio中调试samples中可能出现的错误

    在Visual Studio中调试samples中可能出现的错误 进入samples/opencl文件夹下,打开OpenCLSamples.sln,然后选择" 生成 -> 重新生成解决 ...

  3. [译]如何在visual studio中调试Javascript

    本文翻译youtube上的up主kudvenkat的javascript tutorial播放单 源地址在此: https://www.youtube.com/watch?v=PMsVM7rjupU& ...

  4. Visual Studio 2010 调试 C 语言程序

    转:http://woyouxian.net/c/using_visual_studio_write_pure_ansi_c_program.html 本篇文章讲述如何用微软的 Visual Stud ...

  5. CMake结合Visual Studio中开发Qt应用程序注意事项

    Qt工程管理 个人比较偏爱于使用CMake来管理C++工程,因为只要编写一个CMakeLists.txt文件,就可以在Windows和Mac上生成各自的IDE工程.在Windows上, CMake自然 ...

  6. Visual Studio中怎样更改Nuget程序包源

    场景 Visual  Studio 2019 在使用NuGet添加依赖包时,在预览中搜索不到程序包. 排查下NuGet的程序包源为本地. 将程序包源修改下. 注: 博客: https://blog.c ...

  7. visual studio asmx 调试_通过Windows Visual Studio远程调试WSL2中的.NET Core Linux应用程序...

    最近两天在Linux中调试.NET Core应用程序,同时我发现在Linux中调试.NET Core应用程序并不容易.一直习惯在Visual Studio中进行编码和调试.现在我想的是可以简单快速的测 ...

  8. 通过Windows Visual Studio远程调试WSL2中的.NET Core Linux应用程序

    最近两天在Linux中调试.NET Core应用程序,同时我发现在Linux中调试.NET Core应用程序并不容易.一直习惯在Visual Studio中进行编码和调试.现在我想的是可以简单快速的测 ...

  9. Visual Studio中Debug和Release的区别

    在Visual Studio中,生成应用程序的时候有2种模式:Debug和Release.两者之间如何取舍呢? 假设有这么简单的一段代码,在主程序中调用方法M1,M1方法调用M2方法,M2方法调用M3 ...

最新文章

  1. c# 获取客户端IP地址方法
  2. html转换pdf 分页,(html2canvas jspdf)html转pdf带分页
  3. AS3深拷贝数据对象(1)深拷贝基本数据类型
  4. apache开源项目--Sirona
  5. Python解析XML文件
  6. C语言extern关键字(去使用外部全局变量、函数)
  7. linux系统备份和恢复
  8. 组合计数与反演 —— 反演
  9. 视觉SLAM常用的数据集集合【3】
  10. python画中秋的月亮_水彩中秋月亮教程
  11. Ubuntu安装RabbitMQ及RabbitMQ基于使用
  12. DPDK收发包流程分析(一)
  13. Crystal Reports - Add Subreport
  14. excel转置怎么操作_Excel----选择性粘贴,工作中必须学会的技能
  15. keil优化等级影响STM32 GPIO速度变化
  16. 带你刷笔试关的小怪|详解指针习题和面试题【C语言/指针/进阶】
  17. 【微信小程序】二维数组列表渲染
  18. 我发现智能无人机课程里面讲了无人机建模这方面的理论知识
  19. Linux安装配置ssh 基于unbantu22.04.1 LTS版本
  20. Lantek.v27-ISO 1DVD(钣金专家)

热门文章

  1. hdu 5144 NPY and shot(三分)
  2. jQuery 自定义选择器
  3. The method setCharacterEncoding(String) is undefined for the type HttpServletResponse 是什么原因?...
  4. my log4crc
  5. powershell自动化操作AD域、Exchange邮箱系列(8)—链接操作Sqlserver数据库
  6. 帆软报表登录背后得逻辑
  7. 简单梳理帆软报表即决策系统的登录步骤 一
  8. java d long_java 中long型数据的对比
  9. android field 类型,Gradle buildConfigField 使用Hashmap ArrayList 等类型
  10. delphi 登录界面 主窗体 切换_Python GUI项目实战(二)主窗体的界面设计与实现