I use Visual Studio 2008 primarily for web development, and there's one annoying behaviour which seems to have occurred ever since I upgraded to IE8 on my work PC:
When I set a start page for a web site or web application project, and then either click the "Start Without Debugging" icon in the toolbar or use the keyboard shortcut CTRL-F5, Visual Studio proceeds to start IE8 (my default web browser), but does so twice:
The first new window that IE8 opens has a tab saying "Connecting...", and it loads the about:blank page. Then, another new IE8 window opens also with a tab saying "Connecting...", and loads the start page I set in my project.
This is very annoying. Does anybody have any ideas what might be causing this and how to fix it?
Before somebody suggests it, I have already been working around this for a while by having Firefox as my default browser ;-) But, I'd like to use Visual Studio's javascript debugging capabilities with IE8 and so want IE8 as my default again, for now.
Additional information:
Using Process Explorer, I can see that both of the iexplore.exe processes were launched by the same parent process, Visual Studio 2008's devenv.exe.
The first iexplore.exe process has the following command line:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -noframemerging -debug about:blank
The second iexplore.exe process, launched a few seconds later, has the following command line:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -noframemerging -suspended -debug http://localhost/test/index.html
Then, I also tried Process Monitor. In the log, I can see two distinct "Process Create" events from devenv.exe on "C:\Program Files\Internet Explorer\IEXPLORE.EXE" ... a few seconds apart.
Interestingly, if I try the exact same thing (launch without debugging) with Visual Studio 2005 (instead of 2008), I only see a single process created with a command line of:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" about:blank
With 2005, visually it appears as if about:blank gets loaded first, and then the URL gets loaded by that same browser process in the same tab as about:blank, overwriting it.
One other thing I notice different: In the VS2005 Process Monitor log, it shows a lot of reading of the file "C:\WINDOWS\system32\ieframe.dll", but the same doesn't show in the VS2008 Process Monitor log. (ieframe.dll contains the type library for some COM objects related to Internet Explorer.) So, the way VS2005 launches and controls IE could be different than what VS2008 does.
AND LAST, this is weird: In VS2008, if I click "Start Without Debugging", I get the two windows. But, if in Solution Explorer I instead right-click my web site project or any HTML file in it and choose "View in Browser", I get only the single window. Why the difference between "Start Without Debugging" and "View in Browser"?