【问题标题】:How to change my URL from http://localhost to http://myurl.myservice.com in ASP.Net MVC5?如何在 ASP.Net MVC5 中将我的 URL 从 http://localhost 更改为 http://myurl.myservice.com?
【发布时间】:2014-04-15 23:57:28
【问题描述】:

我正在 Visual Studio 2013 中使用 ASP.Net MVC5 开发服务器。

我正在尝试使用我的 DDNS url 运行测试服务器,因此我尝试在我的项目设置文件的项目 URL 字段中将我的 URL 从“localhost”更改为“myurl.myddnsservice.com”。 但它不适用于“无法启动 IIS Express”消息。

我在这个网站上搜索了很多次,但我找不到答案。

有人帮我吗?

谢谢。

【问题讨论】:

    标签: visual-studio-2013 asp.net-mvc-5


    【解决方案1】:

    没关系。我知道了。我需要在我的 Windows 中保留一个 URL:

    netsh http 添加 urlacl url=http://myurl.myddnsservice.com/user=Everyone

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-07
      • 2011-08-03
      • 1970-01-01
      • 2012-08-10
      • 1970-01-01
      • 1970-01-01
      • 2017-12-24
      • 2022-08-21
      相关资源
      最近更新 更多