IIS Express is not working in Debug Mode

In Visual Studio 2017, Debugging does not work when I start the ASP.NET Web Application.


iis_express_does_not_work_1.png

I'm getting below error when I start the ASP.NET Web Application.


iis_express_does_not_work_2.png

iis_express_does_not_work_3.png

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


To solve this error, delete or rename the applicationhost.config file.


iis_express_does_not_work_4.png

Select the "View" option from the menu bar of our project's root folder


The ".vs" folder is a hidden file. If the ".vs" folder does not exists, enable the "Hidden items" option


iis_express_does_not_work_4.png

Then, delete or rename the applicationhost.config file.


Restart Visual Studio and Start debugging by pressing F5


You'll see that the application is running successfully.