2008-05-13

ASP.NET Development Server problems under Vista (maybe Windows 7)

Problem
When hitting Ctrl-F5 in Visual Studio 2005/2008 to run a web application in Vista, the Development Server gets started, Internet Explorer opened but nothing happens, although the web application is set to run with Development Server, ASP, ISS and everything required is installed.

Solution
Go to c:\Windows\System32\drivers\etc\ and open the file named hosts with a text editor
Search for the line containing "::1" mapped to "localhost"
Change "::1" to ":::1" by adding an extra ":"
Save the file and everything should be running fine

11 comments:

Anonymous said...

Thank you guy! ;) Works perfectly for me.

Anonymous said...

I opened it in notepad and did change the ::1 to :::1 but file is not being saved. It says check path which is right. Please help! Thanks

Venci said...

- Do you have administrative rights?
- Did you tried to open with a different text editor
- Did you try to copy the file elsewhere, edit it and copy it back?

Beside these I have no other suggestions

Anonymous said...

Thanks, it helped me out...

Funny thing is though, that the new : makes Vista go completely bogus and ignore the entry.

Putting a # in front of it would be better. :)

Anyway, what does the ::1 stand for? It's probably IPv6 something, but what does it mean? What does it actually do?

Unknown said...

You are a legend !!!

Didier xD said...

Muchas gracias :D !!!!

Anonymous said...

WOW!!!!!!!!! Dtz really cool

Anonymous said...

Thanks! it reealy works.

What happend and why does this solution work??

Anonymous said...

On C:\Windows\System32\drivers\etc\hostsfile, I had to comment the line

#:::1 localhost

and make sure you have this line:

127.0.0.1 localhost

Anonymous said...

It works great!! You saved me man!!

Thanks a lot!!

Anonymous said...

Hi,
Thanks a lot for this great help. It took me a lot of time to get it working. Thanks again!