Visual-studio – IIS Express Internet Explorer cannot display the webpage … until restart

asp.netiis-expressvisual studio

I have one asp.net application which I debug locally using IIS Express.
I have a setup by which I access it as http//machine-name:port/appname (instead of localhost).

This works smoothly until suddenly out of the blue during debugging I get the message:

Internet Explorer cannot display the webpage

What ever I do, it does not work again until I restart Windows.

Has anyone faced this issue before? Is there a way to fix this without restarting Windows?
I am using Windows 7 with Visual Studio 2010, but this also happens in VS 2012.

EDIT This issue stopped occurring. which leads me to believe this was Microsoft bug which they fixed in one of their updates

Best Answer

Just taking a stab in the dark, since you aren't getting any responses... Try deleting (or even just rename) the applicationHost.config under "My Documents\IISExpress\config", then open VS.net and run your project again. A new IISExpress config file will get generated for you. I have had mine junked up with something in the past, and starting fresh with a new one fixed whatever it was.