今天早上突然我打开了计算机,启动了Visual Studio……无论我尝试了什么,是否运行或调试,无论使用什么浏览器(chrome / firefox / IE 11),它都在永远等待本地主机。

如果我将其部署到 azure ,只需 checkin (持续集成)就可以像魅力一样工作

我都读过:

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

  • 如我所写,它已经等待localhost超过15分钟。我重新启动了VS,甚至重新启动了计算机...尝试了ipv6禁用Firefox上的内容...等

    我注意到(不知道是否有用)通过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小时内显示一个本地主机页面。

    最佳答案

    检查防火墙是否有阻塞的端口,将应用程序的动态端口更改为某个固定端口。

    关于asp.net - asp.net永远等待本地主机,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27656654/

    10-13 06:12