In my case, after installing AspNetCore.2.0.6.RuntimePackageStore_x64.exe
and DotNetCore.2.0.6-WindowsHosting.exe
, I need to restart server to make it worked without 502 bad gateway and proxy error.
UPDATE:
There is a way you could use it without restart: https://stackoverflow.com/a/50808634/3634867