Failed to load the dll from [ .. hostfxr.dll], HRESULT: 0x80070057 (windows server 2008r2 dotnet 无法运行)

  今天需要切换服务器,重新安装netcore 程序服务,在新服务器:Windows Server 2008r2 x64 位,netCore SDK 3.1 已经安装完成:

  cmd  命令窗口 查看发现dotnet --info/version 命令无法执行,报题目异常:Failed to load the dll from [ .. hostfxr.dll], HRESULT: 0x80070057 (无法加载在C 盘xxxx的 hostfxr.dll,并且存在改dll ,就是加载失败)

  通过查找资料,发现 这是Windows 系统缺失一个补丁导致:KB2533623,由于年代比较久远,(本人官网未找到可用下载包);

  1、前往Microsoft 安全公告:不安全的库加载可能允许远程执行代码 选择对应操作系统版本补丁,安装重启,搞定!

  2、直接下载:KB2533623 补丁 【内含两个压缩包:一个csdn 下载的x64 位补丁,另一个是 x86+x64 位的。】

 

posted @ 2021-04-21 11:04  天為  阅读(2512)  评论(0编辑  收藏  举报