asp.net - IIS https 绑定(bind)有时会消失

标签 asp.net visual-studio iis iis-8

我的开发计算机上有 IIS,并且托管默认的 asp.net 4.5 网站和 .NET core 应用程序。

应用程序配置为仅通过 https 运行。 有时,没有任何模式,“https”就会从配置列表中消失。 在这种情况下,我手动添加它,但这确实很烦人。

有什么线索可以一直删除这个绑定(bind)吗?

enter image description here

最佳答案

打开launchSettings.Json并将iis的sslPort设置为443

  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iis": {
      "applicationUrl": "http://localhost/",
      "sslPort": 443
    },
    "iisExpress": {
      "applicationUrl": "http://localhost:54633",
      "sslPort": 0
    }
  },

关于asp.net - IIS https 绑定(bind)有时会消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51860648/

相关文章:

c# - 查找在 Visual Studio 或单元测试中未使用 await 的异步用法

iis - IIS6.0可以托管两个SSL证书吗?

c# - 比较两个 XML 文件并显示它们之间的差异并更新文件

asp.net - 如何使RequiredFieldValidator控件两个验证两个控件

c# - 为什么我应该使用 "About box"而不是使用表单来显示 Visual Studio 中的信息?

c# - 发布项目时,使用向导而不是仅提供 bin 文件夹有什么好处?

c# - 如何增加 Azure IIS 请求中 HTTP header 值的大小限制?

asp.net - 在 IIS 上使用 .NET Core 运行 ASP.NET 5 (MVC 6)

asp.net - 单击后退按钮强制刷新页面

c# - 私有(private)化 BlogEngine.Net 安装