Visual Studio 2012 IIS Express 8 Fresh Install - Can't Connect

后端 未结 6 483
臣服心动
臣服心动 2021-01-04 02:38

On Visual Studio 2010 + IIS Express 7 I was able to use IIS Express as a server and browse sites.

I\'ve since installed Visual Studio 2012 (on Windows 7 64-bit) with

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 02:59

    I tracked down the problem on my machine.

    When I checked my C:\Windows\system32\drivers\etc\hosts file, I did not have

     127.0.0.1   localhost
    

    in the file. I remember changing it "temporarily" to troubleshoot a problem. Adding back in the missing record fixed my problem.

    You can test what IP your machine thinks localhost is by simply ping localhost and making sure that 127.0.0.1 is pinged and not some other IP.

提交回复
热议问题