asp.net – 为什么我不能从Visual Studio 2005安装IE8后调试?

前端之家收集整理的这篇文章主要介绍了asp.net – 为什么我不能从Visual Studio 2005安装IE8后调试?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚安装IE8(最终),重新启动。我不能再使用Windows Server 2003 Enterprise R2上的Visual Studio 2005调试Web应用程序项目。我收到消息“Internet Explorer无法显示网页”,然后WebDev.WebServer.exe退出,没有可见的错误消息,在事件查看器中没有。

有没有任何想法?

没有帮助的事情:

>将localhost添加到受信任的站点
>将端口更改为8080或80
>检查我的主机文件(它只有127.0.0.1 localhost在它)

事情有帮助了一点:

>使用CTRL-F5运行(不调试),它工作正常(除非你需要调试)
>将默认的Visual Studio浏览器更改为Firefox,这允许我调试

我的主机文件包含:

# 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

解决方法

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

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

07000

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.

来源:Brad Sullivan,Visual Studio Debugger项目经理,MSFT

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

原文链接:https://www.f2er.com/aspnet/254855.html

猜你在找的asp.Net相关文章