HTTP Status 500 on debugging ASP.NET Core with Visual Studio 2017

I gave my PC a new Windows installation and run into the following error: Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server .....