views:

284

answers:

1

Hi,

I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work.

When I run the project, the WebDev server starts and shows that it's listening on port x on localhost.

I've tried:

  • telnet to the port. The port is not listening.
  • running netstat -o shows that the WebDev server is in fact not listening on any port.
  • manually changing the WebDev port to a different port and restarted VS without effect.

I have Windows Firewall turned off entirely and am not running any other firewall software either.

Any idea what could be going on here?

Thanks!

+1  A: 

ok, figured out how to fix it: For some reason my hosts file had "127.0.0.1 localhost" commented, so I'm assuming WebDev server tried to bind to localhost but it couldn't resolve to the 127.0.0.1 address. After I uncommented that line and restarted VS, the WebDev server works fine

Tom Frey
Windows 7 doesn't need localhost to be in the hosts file to be resolved. However if you issued a "route delete *" previously, localhost won't be resolved anymore.
Julien Lebosquain
I didn't and this is a clean Windows 7 install, so I'm a little puzzled why it wouldn't resolve. Don't quite understand though what a route table entry has to do with the DNS resolution?
Tom Frey