首页 > 解决方案 > HTTP 错误 500.30 - ANCM 进程内启动失败 - 生产环境

问题描述

我正在配置我的应用程序以进行部署。我做的第一步是将环境从开发更改为生产,并偶然发现了这个错误。我注意到我只能在开发环境中启动我的应用程序。当我将它们更改为暂存、生产时,我收到了上述错误。另外,我尝试了这篇文章中的解决方案,但仍然没有成功。

以下是相关配置:

启动设置.json

{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:64845",
      "sslPort": 44375
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Production"
      }
    },
    "BingoAPI": {
      "commandName": "Project",
      "launchBrowser": true,
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Production"
      }
    }
  }
}

xx.csproj

<PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

标签: c#asp.net-coreasp.net-core-mvc

解决方案


推荐阅读