Ask questionsThe library 'hostpolicy.dll' required to execute the application was not found
I'm getting this error any time I try to run an asp.net core 2.1.0-preview1-final mvc app installed with the installer.
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.0-preview1-final'.
Steps to reproduce: dotnet new mvc dotnet build dotnet run
I'm using Windows 7
If I do the same thing with the binaries in a separate install directory (instead of the installer) it seems to work fine. However when I merged the binaries into my normal dotnet install directory it stopped working again.
Uninstalling all of my sdks and reinstalling 2.1.0-preview1 got it working
Answer questions Sergio1C
Hi from 2019 ....I was get similar error output, but i've get first error as:
rzc generate exited with code -2147450749.
I tryed investigate this issue self and solve this issue:
the library 'hostpolicy.dll' required to execute the application was not found in C:\Programm files\dotnet\shared\Microsoft.NetCore.App\2.0.9. I just check all me install list SDK& Runtime verisons list and delete this path manually.
Hope this info get help somebody.