为什么我不能从Visual Studio 2005的安装调试后,IE8? [英] Why can't I debug from Visual Studio 2005 after installing IE8?

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

问题描述

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

有没有人有什么想法?

事情没有帮助:


  • 添加本地主机到受信任网站

  • 端口更改为8080或80

  • 检查我的主机文件(它只是得到了在它127.0.0.1本地主机)

东西,已经帮助了一点:


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

  • 更改默认的Visual Studio的浏览器火狐,这让我调试

我的hosts文件包含:

 #版权所有(C)1993-1999微软公司

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

#此文件包含IP的映射地址和主机名。每
#条目应保持在一个单独的行。 IP地址应该
#被放置在第一列,随后由相应的主机名。
#的IP地址和主机名应该由至少一个分隔
# 空间。

#此外,意见(如上述)可插入个人
#线或以下由#符号表示的机器名。

# 例如:

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


解决方案

我的一个同事是有类似的问题,发现这个:


  

IE 8有一个称为松耦合的Internet Explorer(LCIE)功能,它会导致IE在多个进程中运行。


  
  

<一个href=\"http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie\">http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie


  
  

较早的Visual Studio调试器版本受此感到困惑,并不能找出如何连接到正确的过程。您可以通过禁用LCIE的过程中成长的特征解决这个问题。具体方法如下:


  
  

      
  1. 开启注册表编辑

  2.   
  3. 浏览到HKEY_LOCALMACHINE - >软件 - >微软 - > Internet Explorer中 - >主

  4.   
  5. 添加一个DWORD此项名为TabProcGrowth下

  6.   
  7. 设置TabProcGrowth 0

  8.   

  
  

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


信用:布拉德沙利文,项目经理,Visual Studio调试器,MSFT

来源:<一个href=\"http://social.microsoft.com/Forums/en-US/vsdebug/thread/e2c795cd-b7a0-4fad-b7c9-b1ca40d7302e\">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

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

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