在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,如果正常,那就恭喜你成功解决问题文章来源:https://www.toymoban.com/news/detail-452434.html
第一次发帖,如有问题请多多包含文章来源地址https://www.toymoban.com/news/detail-452434.html
到了这里,关于.net core 3.1 出现 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!