.net core 3.1 出现 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

在Windows server 2008 R2服务器上部署.net core 3.1项目

我已经在服务器安装了dotnet-runtime-3.1.20-win-x64 和dotnet-hosting-3.1.20-win 但部署3.1项目遇到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

接下来开始解决问题

使用cmd,进入终端,运行如下: dotnet --info

如果出现如下错误:

Failed to load the dll from [C:\Program
Files\dotnet\host\fxr\版本号\hostfxr.dll], HRESULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\Program
Files\dotnet\host\fxr\版本号\hostfxr.dll failed

解决方法: 

需要安装KB2533623 补丁,下载地址如下:

链接: https://pan.baidu.com/s/1Fv46N-6EvXVs_GA4yPBkSg

提取码: hwc1 

最后重启服务器。

重启之后执行cmd命令 dotnet --info,如果正常,那就恭喜你成功解决问题

第一次发帖,如有问题请多多包含

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值