Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 724
bdd Avatar asked Jun 04 '19 19:06

bdd


People also ask

Where is Iisexpress EXE located?

Once you have IIS Express installed (the easiest way is through Microsoft Web Platform Installer), you will find the executable file in %PROGRAMFILES%\IIS Express ( %PROGRAMFILES(x86)%\IIS Express on x64 architectures) and its called iisexpress.exe .

What is Iisexpress EXE?

IIS Express is a lightweight, self-contained version of IIS optimized for developers. IIS Express makes it easy to use the most current version of IIS to develop and test websites.

How do I disable Iisexpress EXE?

Closing IIS Express By default Visual Studio places the IISExpress icon in your system tray at the lower right hand side of your screen, by the clock. You can right click it and choose exit. If you don't see the icon, try clicking the small arrow to view the full list of icons in the system tray.


1 Answers

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 Ctrl + F5

  6. Step Into Debugging
    Hit F11 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

  7. 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 (Ctrl + Alt + D)
    Select Common Language Runtime Exceptions

    Exception Settings

    Common Language Runtime Exceptions

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

    Web Settings > URL > Port

  9. Create Virtual Directory
    In the above screenshot, select Create Virtual Directory to the right of the Project Url

  10. 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

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

    Exit IIS Express

  12. 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

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

    Event Viewer

    Windows Logs > Application > IIS Express

  14. 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\
    


  15. Download IIS Express
    Get the standalone installer for Internet Information Services (IIS) 10.0 Express and try again

  16. 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

Further Reading:

  • ASP.NET MVC5/IIS Express unable to debug - Code Not Running
  • IIS Express crashes when starting a site from visual studio
  • Unable to launch IIS Express Web server
like image 86
KyleMit Avatar answered Oct 12 '22 22:10

KyleMit