asp.net等待永远本地主机 [英] asp.net waiting for localhost forever

查看:219
本文介绍了asp.net等待永远本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早上突然我把我的电脑上,推出Visual Studio的......无论什么我尝试和我是否运行或调试,并且无论浏览器(铬/火狐/ IE 11),它永远在等待本地主机。

Suddenly this morning I turned on my computer and launched visual studio... And no matter what I tried and whether I run or debug, and whatever the browser is ( chrome / firefox / IE 11 ) it is waiting for localhost forever.

如果我部署到Azure中,在(持续集成)只是检查它的工作原理就像一个魅力: HTTP: //couleur-emotion.azurewebsites.net/ (我重塑我的妈妈画的网站,以了解ASP.net MVC)

If I deploy it to azure, by just checking in ( continuous integration ) it works like a charm: http://couleur-emotion.azurewebsites.net/ ( I'm remaking my mummy painting website in order to learn ASP.net MVC )

我读过两个:

  • Waiting for localhost, forever!
  • How to figure out why my local host site takes so long to load?

在我写的,它一直在等待本地主机超过15分钟以上。我重新启动VS,即使重新启动计算机......试图在Firefox ...等IPv6的禁用的东西。

As I write, it has been waiting for localhost for more than 15mins. I restarted VS, even rebooted the computer... tried the ipv6 disable stuff on firefox...etc

我说(不知道它是否有用),通过更换127.0.0.1本地主机抛出:

I noted ( do not know if it is useful ) that Replacing localhost by 127.0.0.1 throws:

Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid. 

也是我的C:\\ WINDOWS \\ SYSTEM32 \\ DRIVERS \\ ETC \\主机(不变)

also my C:\Windows\System32\drivers\etc\hosts ( unchanged )

# 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小时显示一个页面本地主机

Any idea ? I've not been able to show a single localhost page in 3hours.

推荐答案

检查防火墙的阻塞端口,更改应用程序的动态端口一些固定的端口。

Check firewall for blocked ports, change dynamic ports of application to some fixed port.

这篇关于asp.net等待永远本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆