21. April 2008 02:39
The Quick Answer
IPv6 might break the connection between IE 7 to the local instance of the Visual Studio development web server "webdev.webserver.exe".
Un-comment the line "::1 localhost" in the hosts file of your development machine. Have your machine use "127.0.0.1 localhost" instead. This time IE 7 connected to the web server.
Figure 1: Neural network enhanced with Photoshop
I got a new computer with enough horsepower to run Windows Vista 64 Ultimate. I installed the Service Pack 1 release of the operating system. After I moved my "furniture" in (installed all the software), I wanted to test Visual Studio 2005 by running my BlogEngine application locally on my machine. I opened the Visual Studio solution and hit the "Start debugging" button. IE7 opened and I got a message that it is unable to connect to the web server. I tried it a couple of times. Then I tried with Visual Studio 2008 and created a new web site project. The same issue. IE didn't connect to the local web server. Finally I tried Firefox 2.0. To my surprise Firefox was able to connect to the debug web server and successfully render the pages. After searching and posting at the forums at asp.net I discovered the solution for my problem.
What I have learned
Windows Vista Ultimate 64 SP1 installs IPv6 (Internet Protocol version 6). The presence of this new protocol seems to break the connectivity between IE7 and the development web server, because of the new routing rules for local connections. When you start debugging a web site in Visual Studio, VS launches Internet Explorer and makes it point to an URL similar to http://localhost:4266/BlogEngine.Web/. The IP address mapping for localhost doesn't get resolved and IE7 can't connect. Removing the IPv6 entry for localhost in the hosts file bypasses this problem.
Figure 2: IP address mappings in the hosts file