I've recently installed Visual Studio 2017 Professional and have just created the boilerplate ASP.NET Core Web Application
This is what happens when I hit Run (With IIS Express):
And this is what Visual Studio 2017's Output window says:
The program '[8260] dotnet.exe' has exited with code -2147450749 (0x80008083).
The program '[6476] iisexpress.exe' has exited with code 0 (0x0).
Steps to fix?
I think it's a bug as per Visual Studio 2017 Doesn't Run Core Apps with IIS Express.
And that the current status is fixed pending release: https://developercommunity.visualstudio.com/content/problem/11391/aspnet-core-iis-express-httplocalhost51733-failed.html
And that the workarounds meanwhile are probably:
dotnet run
If you aren't familiar with VS2017/asp.net: You probably have the Debug toolbar visible which shows you a dropdown with a green arrow and 'IIS Express'. Click on that and you should see a 'Run {yourprojectname}' option. This is the equivalent of dotnet run {yourprojectname}
from the commandline
Okay, this worked for me: Install the x86 SDK...
'The program '[8260] dotnet.exe' has exited with code -2147450749 (0x80008083).'
Could be a x86 x64 related thing. (Same for Console Core Apps)
If you have installed multiple versions of .NET Core like so:
You need to set the order in the path environment variable:
So that the one you want to use appears first and then (re-)start Visual Studio. To check which dotnet is currently "active" run: dotnet --info in the console.
User contributions licensed under CC BY-SA 3.0