为什么安装IE8后无法从Visual Studio 2005调试? [英] Why can't I debug from Visual Studio 2005 after installing IE8?

查看:144
本文介绍了为什么安装IE8后无法从Visual Studio 2005调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装IE8(最终)并重新启动。我无法再使用Windows Server 2003 Enterprise R2上的Visual Studio 2005调试Web应用程序项目。我收到消息Internet Explorer无法显示网页,然后WebDev.WebServer.exe退出,没有可见的错误消息,事件查看器中没有。



有没有人有任何想法?



没有帮助的事情:




  • 将localhost添加到信任的站点

  • 将端口更改为8080或80

  • 检查我的主机文件(只有127.0.0.1本地主机)



有帮助的事情:




  • 运行不要调试)CTRL-F5,它工作正常(除非你需要调试)

  • 将默认的Visual Studio浏览器更改为Firefox,允许我调试



我的主机文件包含:

 #版权所有(c) 1993-1999 Microsoft Corp. 

#这是Microsoft TCP / IP for Windows使用的示例HOSTS文件。

#此文件包含IP地址与主机名的映射。每个
#条目应保存在单独的行上。 IP地址应该
#放在第一列后跟相应的主机名。
#IP地址和主机名应至少分开一个
#空格。

#另外,注释(如这些)可以插入到单独的
#行上或者以#符号表示的机器名称之后。

#例如:

#102.54.94.97 rhino.acme.com#源服务器
#38.25.63.10 x.acme.com#x客户端主机

127.0.0.1 localhost


解决方案

p>我的同事有类似的问题,发现这一点:


IE 8有一个名为松散耦合的Internet Explorer(LCIE)功能,这导致IE跨多个进程运行。



http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie



Visual Studio Debugger的旧版本被这个混淆,无法弄清楚如何附加到正确的进程。您可以通过禁用LCIE的流程增长功能来解决此问题。以下是如何:


  1. 打开RegEdit

  2. 浏览到HKEY_LOCALMACHINE - >软件 - > Microsoft - > Internet资源管理器 - >主要

  3. 在此键下添加一个双键,名为TabProcGrowth

  4. 将TabProcGrowth设置为0

由于您是在Windows Server 2003上运行的,所以您应该需要做的。如果您在Vista或更高版本遇到同样的问题,您还需要关闭保护模式。


信用:Brad Sullivan,程序经理,Visual Studio Debugger,MSFT



资料来源: http://social.microsoft.com/Forums/en-US/vsdebug/thread/e2c795cd-b7a0-4fad-b7c9-b1ca40d7302e


I've just installed IE8 (final) and restarted. I can no longer debug Web Application Projects using Visual Studio 2005 on Windows Server 2003 Enterprise R2. I get the message "Internet Explorer cannot display the webpage" and then WebDev.WebServer.exe quits with no visible error message and nothing in the Event Viewer.

Does anyone have any ideas?

Things that haven't helped:

  • Adding localhost to trusted sites
  • Changing the port to 8080 or 80
  • Checking my hosts file (it's just got 127.0.0.1 localhost in it)

Things that have helped a bit:

  • Running (not debugging) with CTRL-F5, which works fine (unless you need to debug)
  • Changing the default Visual Studio browser to Firefox, which allows me to debug

My hosts file contains:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

解决方案

A colleague of mine was having similar issues and found this:

IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes.

http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie

Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. You can work around this by disabling the process growth feature of LCIE. Here's how:

  1. Open RegEdit
  2. Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
  3. Add a dword under this key called TabProcGrowth
  4. Set TabProcGrowth to 0

Since you are running on Windows Server 2003, this is all you should need to do. If you run into the same problem on Vista or newer, you will also need to turn off protected mode.

Credit: Brad Sullivan, Program Manager, Visual Studio Debugger, MSFT

Source: http://social.microsoft.com/Forums/en-US/vsdebug/thread/e2c795cd-b7a0-4fad-b7c9-b1ca40d7302e

这篇关于为什么安装IE8后无法从Visual Studio 2005调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆