sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Cannot load hostpolicy.dll on Win2012R2

Open natemcmaster opened this issue 10 years ago • 4 comments

dotnet.exe crashes on startup on Windows 2012 Server.

Failed to load the dll from C:\dotnet\bin\hostpolicy.dll, HRESULT:0x8007007E

Running from cmd prompt displays an error dialog:

The pgoram can't start because MSVCP140.dll is missing from your computer

Error started with changes in 262274b9681b6586e01d715703a13e1098c0be1e

natemcmaster avatar Jan 15 '16 19:01 natemcmaster

dotnet/sdk#4790 seems to be the culprit here. @natemcmaster can you verify that installing the CRT fixes this issue?

TheRealPiotrP avatar Jan 15 '16 20:01 TheRealPiotrP

@piotrpMSFT ~~installing CRT changes the error to ~~ image (Needed to reboot)

natemcmaster avatar Jan 15 '16 20:01 natemcmaster

Install CRT 2015 + reboot fixes this problem.

natemcmaster avatar Jan 15 '16 20:01 natemcmaster

CRT shouldn't be required for at least the first step.

https://github.com/schellap/cli/blob/master/src/corehost/cli/dll/CMakeLists.txt#L8-L10 should all be MT and not MD

schellap avatar Jan 15 '16 20:01 schellap