突然,今天早上我打开电脑,启动了视觉工作室...无论我尝试了什么,无论是运行还是调试,无论浏览器是什么(chrome / firefox / IE 11),它都在等待localhost永远。
如果我将它部署到azure,只需签入(持续集成)就可以像魅力一样: http://couleur-emotion.azurewebsites.net/ (我正在重塑我的木乃伊绘画网站,以学习ASP.net MVC)
我读过两个:
在我写的时候,它一直在等待localhost超过15分钟。我重新启动了VS,甚至重新启动了计算机...尝试在firefox上使用ipv6禁用内容等等
我注意到(不知道它是否有用)用127.0.0.1替换localhost会抛出:
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
还有我的C:\ Windows \ System32 \ drivers \ etc \ hosts(不变)
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
任何想法 ? 我无法在3小时内显示单个本地主页。