IIS https绑定有时会消失。

时间:2018-08-15 14:27:30

标签: asp.net iis iis-8

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

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

有什么线索可以一直删除此绑定吗?

enter image description here

1 个答案:

答案 0 :(得分:1)

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

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