【问题标题】:Enabling https protocol in .NET MVC 5 application for localhost在 .NET MVC 5 应用程序中为 localhost 启用 https 协议
【发布时间】:2017-12-23 10:56:18
【问题描述】:

我正在尝试为我在 localhost 上构建的应用程序启用 https 协议,该 localhost 具有如下端口号:

https://localhost:19590/

我已经使用了 IIS xx express 版本并启用了 https 绑定,并且已经能够通过 https 访问 localhost(没有任何端口号),如下所示:

https://localhost/

但是现在我需要为我目前在端口 19590 上工作的项目解决方案启用 HTTPS,当我尝试访问它时,它说:

This site can’t provide a secure connection

我在这里做错了什么,如何在这个端口号上为 localhost 项目启用 HTTPS?

【问题讨论】:

  • 有人吗? =)
  • 我看到有人回复了,但还没来得及看就删除了回复?

标签: asp.net-mvc visual-studio iis https iis-10


【解决方案1】:

在您的项目属性中,在服务器下的 web 部分中,您可以尝试选择本地 IIS 而不是 IIS Express 并在 https://localhost/ 上创建虚拟目录

【讨论】:

猜你喜欢
  • 2011-10-10
  • 2016-11-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-16
  • 2019-04-24
  • 2014-02-21
相关资源
最近更新 更多