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?
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 .
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.
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.
Launch Without Debugging Ctrl + F5
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)
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
Change Project Port
Go to Project > Properties > Web > Project URL
Try using 8080
, but any change might work
Create Virtual Directory
In the above screenshot, select Create Virtual Directory
to the right of the Project Url
Delete .vs
folder
Open the Directory where the solution / project lives.
Make sure hidden file are visible, and delete the .vs
folder
Restart IIS Express
In the system tray, right click on IIS Express and select Exit
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...
Check Event Viewer
Check for any additional diagnostic information in Event Viewer under Windows Logs > Application
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\
Download IIS Express
Get the standalone installer for Internet Information Services (IIS) 10.0 Express and try again
Disable Edit and Continue
Go to Project > Properties > Web > Debuggers
Deselect Enable Edit and Continue
although this will remove that functionality
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With