win7 .net core 部署 The library hostfxr.dll was found, but loading it from C:\<path_to_app>\hostfxr.dll failed

时间:2019-09-25 15:00 作者:Mr.Pan 阅读数:931


对于Windows 8.1和更低版本,或Windows Server 2012 R2和更低版本:

确保您的Windows安装是最新的,并且包括KB2999226,可以通过Windows Update安装。如果没有安装此更新,则在启动.NET Core应用程序时会看到类似以下的错误:The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

对于Windows 7或Windows Server 2008 R2:

除了KB2999226,请确保还安装了KB2533623如果没有安装此更新,则在启动.NET Core应用程序时会看到与以下类似的错误:The library hostfxr.dll was found, but loading it from C:\<path_to_app>\hostfxr.dll failed

解决方案:打补丁,选择自己平台的更新程序,下载并安装

https://support.microsoft.com/zh-cn/help/2533623/microsoft-security-advisory-insecure-library-loading-could-allow-remot


image.png 


推荐文章

[推荐] .NET Core 学习资料精选:入门

[推荐] 数据库常见死锁原因及处理

[推荐] C# 设置Excel数据自适应行高、列宽的2种情况 (转)

[推荐] C++ vector 和set结合数字去重练习

[推荐] win7 .net core 部署 The library hostfxr.dll was found, but loading it from C:\<path_to_app>\hostfxr.dll failed

[推荐] JdbcTemplate多数据源使用

[推荐] 深入学习Redis(2):持久化

[推荐] asp.net core系列 67 Web压力测试工具WCAT

[推荐] .Net Core 2.0 获取客户端IP地址

[推荐] 第七天 让你的container实现跨主机访问

[推荐] nodejs app.use(express.static) 静态文件托管 (四)

[推荐] 8天玩转并行开发——第八天 用VS性能向导解剖你的程序

[推荐] C++ Lambda表达式练习

[推荐] C++ 稀疏表的练习

[推荐] Spring Boot 2 (五):Docker Compose + Spring Boot + Nginx + Mysql 实践

[推荐] asp.net core系列 33 EF查询数据 (2)

[推荐] 试试发布

[推荐] C++中 *p++ 到底是 *(p++) 还是 (*p)++ 1. 猜想

[推荐] JavaWeb-Log4j: WARN No appenders could be found for logger

[推荐] C++ 模板练习


评论列表



注册用户登录后才能发表评论,请登录注册,访问 博客首页