После обновления targetFramework для моего веб-приложения с netcoreapp2.1
до netcoreapp2.2
мое веб-приложение прекрасно работает на локальном компьютере, но при публикации в среде 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
, я получаю следующую ошибку:
![enter image description here](https://i.stack.imgur.com/xGjXZ.png)
Моя ссылка на Microsoft.AspNetCore.App
добавлена без версии, рекомендованной предупреждением:
<PackageReference Include="Microsoft.AspNetCore.App" />
Я нашел подобную проблему здесь для обновления предыдущей версии, но без посторонней помощи:
https://github.com/aspnet/AspNetCore.Docs/issues/8794
Как я могу устранить эту проблему?