我想要发布一个 ClickOnce
应用并在本地测试。我需要提供安装链接,所以我需要使用 IP 地址更新位置信息,否则我将无法安装它(因为 localhost
会被翻译成计算机名称而无法访问)。问题是,在我的 IIS
上,我只能通过在地址中使用 localhost
来访问我的页面。
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 服务器
,但仍然失败。我的防火墙已关闭。
你有任何想法是哪里出了问题吗?