How does IPv6 impact web debugging with VS200(58)?

by Klaus Graefensteiner 4/21/2008 1:39:21 AM

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".

The Fix

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.

Neural network enhanced with Photoshop

Figure 1: Neural network enhanced with Photoshop

The Story

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.

 

IP address mappings in the hosts file

Figure 2: IP address mappings in the hosts file

kick it on DotNetKicks.com

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

BlogEngine.NET | Debugging

Powered by BlogEngine.NET 1.3.0.0
Vanilla Theme by Klaus Graefensteiner

About Klaus Graefensteiner

GRAVATAR icon of Klaus Graefensteiner I enjoy the programming of machines.

E-mail me Send mail
Blogroll as OPML OPML LinkedIn Profile View Klaus Graefensteiner's LinkedIn profile

Calendar

<<  September 2008  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

View posts in large calendar

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in