Visual Studio 2005 Web Development under Vista

Monday, July 21st, 2008

I have had an issue today with Visual Studio 2005 and Vista today, specificly I have been unable to use the built in mini-web server that is used for debugging web projects. When you run a project from within the development environment it starts WebDev.WebServer.exe and then points an instance of Internet Explorer at http://localhost:port/path/to/default.aspx.

Now I remember this working well in the past, and indeed if I replace localhost with 127.0.0.1 it worked fine, I didn’t fancy having to type this every time I went to build and run a program. I could not find any way of configuring Visual Studio to point to the IP address rather than the host name.

Upon trying to ping localhost (fairly futile I understand but I was getting desperate) I noticed that packets were being returned over IPv6 (::1:) rather than IPv4 (127.0.0.1), my first port of call was to disable IPv6 on the NIC – which unsurprisingly didn’t work as anything to do with localhost shouldn’t use the NIC, and unlike Linux; Windows does not appear to expose the loopback adapter to the end user.

The soloution as it turns out was to remove the IPv6 record for localhost from %WINDIR%\etc\drivers\hosts. Editing this file requires an instance of notepad.exe to be running as a local administrator (i.e. press the windows key, type “cmd”, right click cmd.exe in the list and choose “Run as Administrator”. I realised had this before, in the time between then and now all trace of the problem occuring was wiped from my memory leaving only the soloution in my head. Never mind all working now!

New Computer

Friday, August 31st, 2007

I never got round to getting the money together for the last computer I wanted to build, so I have started again from scratch, the following is intended to run Windows Vista Ultimate in my current Cooler Master 210.

If anyone reading this has any thoughts please leave a comment, hope to get the whole lot for just over £1000.

Vista is the issue

Wednesday, August 29th, 2007

I am currently trying to diagnose several Windows XP SP2 computers with severe network problems, the bottleneck is in the network. Whilst deploying a group policy object the Windows Installer Service crashed due to a network time-out, and this was the resultant response from Error Reporting:

Problem with Windows XP is Windows Vista

So there you go the problem with Windows XP is Windows Vista!