Monthly Archives: January 2009

ASP.NET Development Server Problems Under Vista

Today, when I use VS2008 to create a Demo WebSite and right click a page and click “View in Browser”, then firefox open, but pass a long time, it show nothing. when i use the same url in IE, it also said can not open the page.

But, when i replace “localhost” in url to “127.0.0.1”, it worked. So I thinked mybe some problem happend when it resolve “localhost” to “127.0.0.1”. So I open a file named “host” under path “C:\Windows\System32\drivers\etc”, find this line “::1             localhost”, this should be “:::1             localhost”, change it.

now it worked.