启动不调试打开IE两次

发布于 2024-12-12 08:19:33 字数 846 浏览 0 评论 0原文

我不知道我在笔记本电脑上对 VS2008 或 IE9 做了什么,但现在当我使用启动而不调试启动我的 Web 项目(在 IE9 中。在 FF 和 Chrome 中运行良好)时,Visual Studio将在我的默认起始页上启动 IE,然后如果我关闭该窗口,VS 将在我的默认起始页上打开另一个 IE 窗口。

我注意到的一些事情是:

  • VS 输出窗口显示构建目录'/mySite/'。两次,这是第一个窗口打开时的挂点(参见第三个项目符号)。 更新:我猜输出窗口多次显示“构建目录'/...../'”是正常的,因为我的工作电脑上的项目也是如此并且工作正常。但它仍然在构建过程中挂起,并且通常在此时挂起。
  • 只有当我启动而不调试时才会出现这种情况。如果我“开始调试”或右键单击解决方案资源管理器中的页面并点击“在浏览器中查看”,则不会发生这种情况。
  • VS 在完成项目构建之前启动第一个窗口。它在大约中途停止建造,悬挂并打开第一扇窗户。然后当我关闭它时,VS 完成构建并打开第二个窗口。
  • 当第一个页面加载时,如果我给予另一个窗口焦点或导航到站点中的另一个页面,IE 最终将完成构建,第一个窗口将保留,而第二个窗口不会显示。
  • 当第一个窗口打开时,Windows 任务管理器显示两个 iexplorer.exe 进程,尽管它是唯一的窗口,当我关闭它时,只有一个进程消失,然后第二个窗口打开,然后第二个进程回来了。然后当我关闭第二个窗口时,两个进程都会消失。
  • 重新启动 VS 或我的笔记本电脑没有帮助。

我在 SO 和谷歌上搜索过这个,但找不到这个特定问题的帮助。我可以尝试重置 VS 设置,但我想避免这样做。谁能在我发疯之前帮我解决这个问题?

I don't know what I did to my VS2008 or IE9 on my laptop, but now when I start my web projects (in IE9. Works fine in FF and Chrome) using Start Without Debugging, Visual Studio will start IE on my default start page, and then if I close the window, VS opens yet another IE window of my default start page.

Some things I noticed is that:

  • VS output window shows Building directory '/mySite/'. twice, and this is the hanging point when the 1st window opens (see 3rd bullet). Update: I guess the output window displaying "Building directory '/...../'" more than once is normal, as my projects on my work PC do the same and works fine. But it still hangs during the build process and usually at this point.
  • It is only when I start without debugging. It doesn't happen if I "Start Debugging" or right click the page in the Solution Explorer and hit "View in Browser".
  • VS starts the first window before it is finished building the project. It stops building about halfway through, hangs and opens the 1st window. Then when I close it, VS finishes building and opens the 2nd window.
  • When the 1st page loads, if I give another window focus or navigate to another page in the site, IE will eventually finish building, the 1st window will remain, and the 2nd window does not show up.
  • When the first window is open, Windows Task Manager shows two iexplorer.exe processes, although it is the only window, and when I close it, only one process goes away, then the 2nd window opens and the 2nd process comes back. Then when I close the 2nd window, both processes disappear.
  • Restarting VS or my laptop doesn't help.

I have search for this on SO and on google and couldn't find help for this specific problem. I could try resetting the VS settings, but I'd like to avoid doing that. Can anyone help me fix this before I go crazy?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2024-12-19 08:19:33

经过过去几天的搜索,我发现 此链接 [Microsoft] 建议为 VS2008 安装 Service Pack 1。在链接中,他们没有解释问题是什么或如何引起的,但安装 SP1 解决了问题!

我的猜测是问题出在IE8/9的LCIE功能上。尽管我发现的几篇文章建议的修复方法对我不起作用:关闭保护模式和/或添加名为 TabProcGrowth 的值 0 的 DWORD在HKEY_LOCAL_MACHINE->SOFTWARE->MS->IE->MAIN中。

无论如何,我的问题已解决,如果其他人遇到此问题,请尝试安装 SP1对于 VS2008,并确保提前运行 Service Pack Preparation Tool(如果需要)。

After searching all over past couple of days, I found this link which [Microsoft] suggested installing Service Pack 1 for VS2008. In the link, they don't explain what the problem was or how it was caused, but installing SP1 solved the problem!

My guess is that the problem lied in IE8/9's LCIE feature. Although the fix for that as suggested by several posts I've found didn't work for me: Turning off Protection Mode and/or adding a DWORD named TabProcGrowth of value 0 in HKEY_LOCAL_MACHINE->SOFTWARE->MS->IE->MAIN.

Anyway, my problem is solved and if anyone else comes across this, try installing SP1 for VS2008, and be sure to run the Service Pack Preparation Tool, if needed, beforehand.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文