asp.net development server 掛起問題解決

來源:互聯網
上載者:User

昨日突然發現調試asp.net應用程式時,IE總是顯示connecting,長時間不顯示頁面。開始分析是什麼原因,發現firefox訪問此asp.net development server,也是長時間沒有顯示頁面。是asp.net development server有什麼問題了。想不出什麼直接的原因,於是就在網上搜尋,用一些關鍵字如:asp.net development server not working, asp.net development server long time no response, asp.net development server hang, 等等等等,搜到一些資訊都沒有協助,有的說把IE options裡reset一下就可以,試了好多方法就是沒有解決。後來看到asp.net development server只能使用localhost來訪問,不能從別的主機過來訪問,不過此處正是本機,應該localhost沒有問題的。中間還試圖調整IE的zone,也沒有解決。後來突然想起,試試127.0.0.1,一試,果然可以。而localhost不行,看來是localhost這個網域名稱出了問題。ping localhost, 果然,localhost被映射成了::1, 於是找到C:\Windows\System32\drivers\etc\hosts, 發現:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

這些行都是注釋的。

為什麼localhost映射成了::1呢,試著寫了一行127.0.0.1       localhost,重啟,果然發現asp.net development server正常了。

這個與IPv6有關,於是把所有IPv6全都disable了。這下應該沒有啥問題了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.