Uninstalling of dotnet sdk and after reinstalling sdk, it works for me.
How to resolve error loading required library hostpolicy.dll from C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.24?
Md. Anam Mofazzal Durjoy
5
Reputation points
I am trying to run some .NET core applications, but I get the following error message: "An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.24]." The HRESULT error code is 0x800700C1. How can I fix this error?
Developer technologies .NET Other
4,103 questions
2 answers
Sort by: Most helpful
-
-
Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
2023-11-09T07:35:50.22+00:00 Hi @Md. Anam Mofazzal Durjoy ,
- Please check whether the
hostpolicy.dll
file exists in theC:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.24
directory. - Check if the following document helps. https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net60#it-was-not-possible-to-find-any-installed-net-core-sdks
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
- Please check whether the