找不到指定的框架 'Microsoft.AspNetCore.App',版本“2.2.5”
The specified framework 'Microsoft.AspNetCore.App', version '2.2.5' was not found
将我的 Web 应用程序的 targetFramework 从 netcoreapp2.1
升级到 netcoreapp2.2
后,我的 Web 应用程序在本地计算机上运行良好,但是当发布到 Azure WebApp 环境时无法启动并出现以下错误:
HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
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
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681
如果我转到 Azure 控制台并尝试使用 dotnet xxx.dll
手动 运行 应用程序,我会收到以下错误:
我对 Microsoft.AspNetCore.App
的引用添加时没有按照警告推荐的版本:
<PackageReference Include="Microsoft.AspNetCore.App" />
我在以前的版本更新中发现了类似的问题,但对我没有帮助:
https://github.com/aspnet/AspNetCore.Docs/issues/8794
我该如何解决这个问题?
查看错误,似乎 ASP.NET Core 2.2.5 尚未安装在 Azure Web 应用程序实例上。您要么必须等待,要么明确指定要使用的运行时版本,而不是 SDK 选择最新版本:
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.4" />
更新项目文件后,您必须 re-publish 您的应用程序。
将我的 Web 应用程序的 targetFramework 从 netcoreapp2.1
升级到 netcoreapp2.2
后,我的 Web 应用程序在本地计算机上运行良好,但是当发布到 Azure WebApp 环境时无法启动并出现以下错误:
HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
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
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681
如果我转到 Azure 控制台并尝试使用 dotnet xxx.dll
手动 运行 应用程序,我会收到以下错误:
我对 Microsoft.AspNetCore.App
的引用添加时没有按照警告推荐的版本:
<PackageReference Include="Microsoft.AspNetCore.App" />
我在以前的版本更新中发现了类似的问题,但对我没有帮助: https://github.com/aspnet/AspNetCore.Docs/issues/8794
我该如何解决这个问题?
查看错误,似乎 ASP.NET Core 2.2.5 尚未安装在 Azure Web 应用程序实例上。您要么必须等待,要么明确指定要使用的运行时版本,而不是 SDK 选择最新版本:
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.4" />
更新项目文件后,您必须 re-publish 您的应用程序。