Asp.net
asp.net 永遠等待本地主機
今天早上突然我打開我的電腦並啟動了視覺工作室……無論我嘗試了什麼,無論我執行還是調試,無論瀏覽器是什麼(chrome / firefox / IE 11)它都在等待localhost永遠。
如果我將它部署到天藍色,只需簽入(持續集成)它就像一個魅力
我都讀過:
在我寫的時候,它已經等待 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 小時內顯示單個本地主機頁面。
檢查防火牆是否有阻塞埠,將應用程序的動態埠更改為某個固定埠。