AzureApp HTTP 错误 500.30 - ASP.NET Core 应用程序无法启动

标签 azure .net-6.0 azure-appservice

在本地工作,但不能在 Azure AppService 上工作

使用:Visual Studio 2022 Asp.Net MVC .NET 6 AzureApp 平台:Windows 32/位 enter image description here 我的应用程序是一个示例 我从AzureAppSample经历过

我可以在我的机器上本地运行它。当我使用 Visual Studio 2022 部署到 Azure,然后查看我的公共(public) URL 时,我收到了错误。当我使用 Kudu 查看 Azure 中的日志时,我发现“ Application ...../ROOT' with physical root 'C:\home\site\wwwroot\' failed to load coreclr. Exception message: CLR worker thread exited prematurely</Data>

最佳答案

尝试将以下内容添加到您的配置中,以便您可以更好地了解错误是什么:

ASPNETCORE_DETAILEDERRORS = 1

关于AzureApp HTTP 错误 500.30 - ASP.NET Core 应用程序无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73170861/

相关文章:

azure - 通过查看 Cosmos DB 指标日志来计算平均 RUN

c# - .NET 5 到 .NET 6 迁移 - 如何修复迁移后 appsettings.json 数据被读取为 NULL 的问题?依赖注入(inject)不起作用

azure - 将 Azure Key Vault 中的 secret 作为环境变量配置到 Azure 应用服务

python - 将 Django 应用程序部署到生产环境 - Azure

azure - 应用服务 azurerm_monitor_autoscale_setting

azure - 在 Azure Web App 上打开其他端口

azure - Powershell - New-AzureRmADServicePrincipal - 获取 secret 属性不起作用?

azure - 如何在 Azure DevOps 中更新密码的到期日期

如果属性具有 null 值,尽管 JsonIgnoreCondition.WhenWritingNull,C# JsonSerializer.Deserialize 也会失败

c# - 使用.Net 6动态读取.Net core Web App中的Azure应用程序配置