我試圖發佈ClickOnce
應用程序並在本地進行測試。我想提供安裝鏈接,因此我需要使用IP地址更新位置,除非我無法安裝它(因爲localhost
已被翻譯成計算機名稱並且無法訪問)。問題是,在我的IIS
上,我只能通過在地址中使用localhost
來訪問我的頁面。
IIS - 不能通過ip地址訪問頁面而不是本地主機
http://localhost:9995/publish/Publish.htm <-- working
http://192.168.1.104:9995/publish/Publish.htm <-- not working (my IP address)
http://my_pc_name:9995/publish/Publish.htm <-- not working
http://127.0.0.1:9995/publish/Publish.htm <-- even that is not working
我使用Windows 7
和Visual Studio 2012
與IIS Express 8.0
,但我想在Visual Studio 2010
相同的,這是ASP.NET server
和還是失敗了。我關閉了防火牆。
你有什麼想法可能會出錯嗎?
您的網站文件位於C:\ inetpub \ wwwroot路徑中嗎? – chamara