6

Had a web application working in Visual Studio 2015 Update 3 perfectly. I ported the project to Visual Studio 2017 RC and compiled successfully. When debugging the application IIS Express terminates after dumping the message below in the output pane of VS 2017 RC:

The program '[7896] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[8488] dotnet.exe' has exited with code 0 (0x0).
The program '[8488] dotnet.exe: Program Trace' has exited with code 0 (0x0).
The program '[7896] iisexpress.exe' has exited with code 0 (0x0).

What's the solution to make the project running and debuggable?

Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
Arash
  • 3,628
  • 5
  • 46
  • 70

2 Answers2

7

In my case with Visual Studio 2017 Community Edition I tried following:

  • Delete IISExpress config folder in Documents
  • Delete hidden .vs in project root
  • Restart Visual Studio 2017 and computer

nothing worked until I re-run Visualt Studio Installer and choose option "Repair". Then somehow everything started working.

Stacked
  • 6,892
  • 7
  • 57
  • 73
Han Do
  • 86
  • 1
  • 2
0

You are most probably missing "commandName": "Project" in your launchSettings.json file. I have described the issues I faced with porting to VS 2017 here

Adam Sitnik
  • 1,256
  • 11
  • 15