近日,使用VS2008调试asp.net项目,发现经常性的提示无法启动调试的页面,同时打开一个无法关闭的Internet Explorer窗口。该窗口只能通过任务管理器的进程管理来关闭。通过网上搜索,原因应该是由于IE8支持标签引起的。以前版本的IE是不支持标签浏览的。
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.
原文链接:http://stackoverflow.com/questions/663144/why-cant-i-debug-from-visual-studio-2005-after-installing-ie8
翻译过来的意思就是:修改注册表的HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main,在Main下添加dword类型的键,值为0.。根据这个键值的名称,可以看出问题与标签密切相关。
经过测试,这样修改注册表带来一个问题:当你下次开启IE8的时候,会提醒你IE8被意外关闭,是恢复上次访问页面还是回到主页,单击回到主页即可。以后在启动IE8不会再出现此提醒。但是如果你单击恢复上次访问页面的话,将会访问你调试过的asp.net页面。