HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

在服务器上部署.net core2.2项目

我已经在服务器安装了dotnet-runtime-3.1.8-win-x64 和dotnet-hosting-3.1.8-win 但部署2.2项目遇到500.13错误

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.
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=2028526

这种情况下我是又安装了dotnet-hosting-2.2.8-win 和dotnet-runtime-2.2.8-win-x64的运行时 才解决的

还是觉得有点疑惑 ,在已经安装3.1捆绑包的情况下部署2.2项目会遇到找不到依赖项的情况

运行dotnet --info
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
记录一下