可以在Azure应用服务中找到.net作为版本

发布于 2025-01-28 06:55:35 字数 682 浏览 3 评论 0原文

我将我的应用程序从3.1迁移到版本5。我部署了它,但是我收到以下错误:

HTTP错误500.31 -ANCM无法找到本机依赖关系 解决此问题的常见解决方案: 找不到Microsoft.netcore.app或Microsoft.aspnetcore.app的指定版本。 ANCM检测到的具体错误: 错误:未找到应用程序依赖项中指定的一个汇编(Microsoft.aspnetcore.azureapservices.hostingstartup.deps.json):'package:'Microsoft.aspnetcore.azureappservices.hostingstartup' 14'路径:'lib/netCoreApp5.0/microsoft.aspnetcore.azureappservices.hostingstartup.dll' 故障排除步骤: 检查系统事件日志中是否有错误消息 启用记录申请过程的stdout消息 将调试器附加到申请过程中,并检查

我进行了一些研究,发现我还需要更新我的应用程序服务,但是在我的应用服务中我找不到.NET 5作为列表。这就是下拉列表的样子:

​得到相同的错误。有办法解决这个问题吗?

I migrated my app locally from 3.1 to version 5. I deployed it but I get the following error:

HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
Specific error detected by ANCM:
Error: An assembly specified in the application dependencies manifest (Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json) was not found: package: 'Microsoft.AspNetCore.AzureAppServices.HostingStartup', version: '5.0.0-preview.3.20215.14' path: 'lib/netcoreapp5.0/Microsoft.AspNetCore.AzureAppServices.HostingStartup.dll'
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect

I did some research and found that I need to update my App Service as well but I can't find .NET 5 as a listing in my App Service. This is what the dropdown looks like:

enter image description here

I added ASP.NET Core 5.0 (x64) Runtime (because the platform is 32 bits) as an Extension as well but I kept getting the same error. Is there a way to fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文