VS2019 IIS Express设置launchSettings.json网站故障中的sslPort

时间:2019-06-19 15:44:59

标签: asp.net-core iis-express

我有以下launchSettings.json

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:8000/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,      
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Codwellers.Prsto.WebApp": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:55640/"
    }
  }
}

该站点将在8000端口上正常启动。

如果我将sslPort更改为44300,则会出错:

enter image description here

我不知道为什么要这么做。我已经修复了IIS Express,重新创建了本地主机自签名证书。

0 个答案:

没有答案