When running my solution in debug mode, IIS Express and Internet Explorer as the browser, I get the following error:

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

I'm using Visual Studio 2017. If I change to Chrome, I do not get this.

The only way to resolve this and still use IISExpress and IE is to go into my properties of the web project and uncheck Enable Edit and Continue under Debuggers.

Any idea as to why?

Try any of the following fixes....

  1. Clean + Rebuild Solution

  2. Restart Visual Studio

  3. Run Visual Studio as Admin

  4. Restart Computer

  5. Launch Without Debugging <kbd>Ctrl</kbd> + <kbd>F5</kbd>

  6. Step Into Debugging
    Hit <kbd>F11</kbd> to start debugging by stepping into the first line of executed code. If that works, the problem is likely in your code somewhere (possibly an ehem StackOverflow Exception)

Step Into

Breakpoint on Application_Start<br/><br/>

  1. Break on CLR Exceptions
    If there is a problem with the code on startup, you should break when thrown
    Go to Debug > Windows > Exception Settings (<kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>D</kbd>)
    Select Common Language Runtime Exceptions

Exception Settings

Common Language Runtime Exceptions<br/><br/>

  1. Change Project Port
    Go to Project > Properties > Web > Project URL
    Try using 8080, but any change might work

    Web Settings > URL > Port<br/><br/>

  2. Create Virtual Directory
    In the above screenshot, select Create Virtual Directory to the right of the Project Url<br/><br/>

  3. Delete .vs folder
    Open the Directory where the solution / project lives.
    Make sure hidden file are visible, and delete the .vs folder

Delete .vs folder<br/><br/>

  1. Restart IIS Express
    In the system tray, right click on IIS Express and select Exit

Exit IIS Express<br/><br/>

  1. Enable 64 Bit IIS Express
    If you're on a 64 bit machine...
    Go to Tools > Options > Projects and Solutions > Web Projects
    Select Use the 64 bit version of IIS Express...

Use the 64 bit version of IIS Express<br/><br/>

  1. Check Event Viewer
    Check for any additional diagnostic information in Event Viewer under Windows Logs > Application

Event Viewer

Windows Logs > Application > IIS Express<br/><br/>

  1. Run IIS Express from cmd line
    You can rule out if there's an issue with Visual Studio or your Web Project itself.
    Here's the docs on Running IIS Express from the Command Line
    Pass in the path to the root of your project (where the web.config) is located

    >  "C:\Program Files (x86)\IIS Express\iisexpress.exe"  /path:C:\repos\project\
    
<br/>
  1. Download IIS Express
    Get the standalone installer for Internet Information Services (IIS) 10.0 Express and try again<br/><br/>

  2. Disable Edit and Continue
    Go to Project > Properties > Web > Debuggers
    Deselect Enable Edit and Continue although this will remove that functionality

    Disable Edit and Continue<br/><br/>

Further Reading: