dotnet deployment Failed to load the dll from appears [... hostfxr.dll], HRESULT: 0x80070057

Due

Recently saw a wpf .net core 3 support, try (if applicable, will be particularly beneficial to runtime from .net)

dotnet new wpf
dotnet publish -c Release -r win-x86

Copy of win-x86 \ publish directory to the target test machine (win7 x86) results can not run, tips

dotnet部署出现Failed to load the dll from [ ... hostfxr.dll], HRESULT: 0x80070057

try

  1. When prompted, try to install the corresponding platform version of the .net core, still does not work, suggesting misleading
  2. Based on a keyword search, we found long been stepped pit too, need to install the KB2533623patch

solve

Go to
Microsoft Security Bulletin: insecure library loading could allow remote code execution
select the corresponding version of the operating system patches, install restart, get!

ps.
remember six years ago to try
a simple way to package assembly from .net framework
is most convenient to the official program ;-)

Guess you like

Origin www.cnblogs.com/flywuya/p/11109637.html