【发布时间】:2015-02-23 17:42:23
【问题描述】:
今天早上我突然打开我的电脑并启动了视觉工作室......无论我尝试了什么,无论我运行还是调试,无论浏览器是什么(chrome / firefox / IE 11)它都在等待localhost永远.
如果我将它部署到 azure,只需签入(持续集成)它就像一个魅力
我都读过:
在我写的时候,它已经等待 localhost 超过 15 分钟。我重新启动了VS,甚至重新启动了计算机...尝试在Firefox上禁用ipv6的东西...等
我注意到(不知道是否有用)将 localhost 替换为 127.0.0.1 会抛出:
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 小时内显示单个本地主机页面。
【问题讨论】:
-
@MatíasGallegos,根据下面的回答,它对我的情况没有帮助。事实上,即使重新启动计算机也没有。但是Thks ;)
标签: asp.net iis visual-studio-2013 asp.net-mvc-5