c# - 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++ - 需要使用 :: 和 memcopy
- git - 如何将我的代码推送到 Intellij 的 Github 上的新存储库?
- python - python 纸浆:如何创建 LpMaximize 和 LpMinimize 问题?
- javascript - 使用多个条件对对象数组进行排序
- google-sheets - 建立声明
- google-cloud-firestore - Firestore:从另一个不是 Id 的字段中获取 Observable 文档
- c# - 接收消息并通过 NetworkStream 向客户端发送消息
- ruby-on-rails - 如何在重定向到 Rails 中的链接之前使用“if”语句
- spring - 使用 spring/hibernate/flyway/postgresql 填充数据库
- javafx - 如何使用 intelliJ JavaFX 创建可分发的 .jar