can't load dotnet 10 sdk

Shao, Seth 0 Reputation points
2026-06-23T05:46:10.7966667+00:00

I get

Failed to load [C:\Program Files\dotnet\host\fxr\10.0.9\hostfxr.dll], HRESULT: 0x800700C1

  • Ensure the library matches the current process architecture: x64

The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\10.0.9\hostfxr.dll failed

when I type dotnet --list-sdks

aslo I can neither uninstall dotnet 10 sdk from Apps nor from Visual Studio Installer

Developer technologies | .NET | .NET Runtime
0 comments No comments

2 answers

Sort by: Most helpful
  1. Damien Pham (WICLOUD CORPORATION) 1,755 Reputation points Microsoft External Staff Moderator
    2026-06-23T07:04:20.42+00:00

    Hello @Shao, Seth ,

    Because where.exe dotnet only shows C:\Program Files\dotnet\dotnet.exe, the likely cause is that the system-wide .NET 10 install is damaged or the required native dependency is missing.

    I suggest trying this in order:

    1. Run the same .NET 10 installer again and choose Repair, or run it with the documented /repair option. Microsoft documents that the Windows installer supports /repair and /uninstall for an existing SDK install: Install .NET on Windows.
    2. If uninstall from Apps/Visual Studio still does not work, use the Microsoft .NET Uninstall Tool to see whether that SDK can be removed: dotnet-core-uninstall list and uninstall tool overview. If it appears in the list, you can remove it with dotnet-core-uninstall remove.
    3. Reinstall the x64 .NET 10 SDK from the official Windows installer or WinGet package Microsoft.DotNet.SDK.10, as described in Install .NET on Windows.
    4. If the machine is older Windows or missing prerequisites, install the Microsoft Visual C++ Redistributable, because the .NET Windows troubleshooting guidance calls that out for hostfxr.dll-related failures: Troubleshooting on Windows.

    If it still fails after repair or reinstall, please share:

    • your Windows version
    • whether this is an Arm64 machine
    • the result of dotnet --info
    • whether the .NET 10 installer Repair completed successfully

    I hope this helps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.    

    Thank you.   

    Was this answer helpful?


  2. Shao, Seth 0 Reputation points
    2026-06-23T05:50:17.91+00:00

    only C:\Program Files\dotnet\dotnet.exe listed when running where.exe dotnet

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.