在IIS 10版上运行时,.net core 2.2应用返回“无法访问此网站”

时间:2019-07-11 22:47:06

标签: iis asp.net-core-2.2 .net-core-2.2

我最近下载了nopCommerce的副本并进行了安装。在Visual Studio中按F5键,它可以在IIS Express上成功运行。我现在已启用IIS,并想在IIS上运行此站点,但是当我在IIS中单击“浏览”时,收到消息“无法访问此站点”。我在管理员模式下运行VS并启用了development-time IIS support,但仍然无法正常工作。

launchSettings.json

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iis": {
      "applicationUrl": "https://nopCommerce.local.com",
      "sslPort": 0
    }
  },
  "profiles": {
    "Nop.Web": {
      "commandName": "IIS",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://nopCommerce.local.com:443/"
    },
    "IIS": {
      "commandName": "IIS",
      "launchBrowser": true,
      "launchUrl": "https://nopCommerce.local.com:443/",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "nativeDebugging": true
    }
  }
}

IIS应用程序池

.Net Clr version: No Managed code

Managed pipeline mode: integrated

IIS网站绑定

Type: https

IP address: all unassigned

Port: 443

Host Name: nopCommerce.local.com

Required server name indication: false

Disable HTTP2: false

Disable OCSP stapling: false

SSL certificate: IIS Express Development Certificate

0 个答案:

没有答案