Failed to load the hostfxr.dll after install net core


Anyone has this problem i change Pc and tried to install net core framework but vs code return this info when i tried to write dontet --info

Failed to load the dll from [C:\Program 
Files\dotnet\host\fxr\2.1.0\hostfxr.dll], HRESULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\Program 
Files\dotnet\host\fxr\2.1.0\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
asked on Stack Overflow Jun 1, 2018 by Tom Karnaski

4 Answers


TL;DR Since the original download is no more, here's what I found on the dell forums:

Standalone package: Microsoft Update Catalog - KB4457144

I had the exact same error message (apart from the directories) on Win7 with a newer VC++ redist already present.

The package contains the KB2533623 that we want. Details of KB4457144: September 11, 2018—KB4457144 (Monthly Rollup)

After installation and a reboot, dotnet new console goes through without an error.

Dell forum source: Microsoft Windows 7 Update KB2533623 needed to install Dell Update Package (DUP)

answered on Stack Overflow Sep 1, 2020 by Xan-Kun Clark-Davis • edited Oct 15, 2020 by Xan-Kun Clark-Davis

I faced the same error and I checked my Web API Program.cs class and found that: .UseIISIntegration() is missing. I added it and the problem solved.

public class Program
    public static void Main(string[] args)

    public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
answered on Stack Overflow Jan 16, 2019 by Mohammed Osman • edited Jun 13, 2019 by Mohammed Osman

Though it is very late but I am trying to list steps to solve this issue hope, this helps! I followed the solutions provided on this link but in my case the deployment environment was the issue. listing down the steps I followed to fix this.

  1. Deploy .Net core runtime with your application if not available on target machine from
  2. set the environment variable DOTNET_ROOT
  3. the appropriate deployment path/environment SIT/UAT (in my case) to solve this (a)"Deployment Mode: Self Contained" needs to be selected in Visual studio 2019. while publishing OR (b) dotnet publish -c Release -r --self-contained true
  4. in case the target machine is 64 bit or 86. C:\Program Files\dotnet OR C:\Program Files (x86)\dotnet you can find the respective folder.
answered on Stack Overflow Oct 19, 2020 by Kamlendra Sharma

In my case there was windows7 x64 and according to this instruction:

Windows 7 SP1 ESU - Microsoft Visual C++ 2015-2019 Redistributable 64-bit / 32-bit

  • KB3063858 64-bit / 32-bit
  • Microsoft Root Certificate Authority 2011 (.NET Core 2.1 offline installer only)

There was no KB3063858 on my machine. After installation my application has started.

(I uset asp net 5)

answered on Stack Overflow May 20, 2021 by Danil

User contributions licensed under CC BY-SA 3.0