1

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

6
  • Once it stops working in IE on your machine, what did it do in another browser such as Chrome? If those work, then it's likely not IIS Express, and I couldn't tell from your question.
    – Michael
    Jul 18, 2013 at 19:39
  • 1
    To really answer this, we'd need to see the HTTP traffic being generated. Can you run Fiddler, capture the requests and responses between the program working and stopping and then include them here? The general "cannot display the page" message contains zero useful information beyond "something went wrong". Jul 19, 2013 at 13:50
  • @Michael it happens in all browsers
    – surya
    Jul 19, 2013 at 18:14
  • @Tragedian next time this happens i will get you the fiddler results
    – surya
    Jul 19, 2013 at 18:14
  • Was this issue ever resolved?
    – pwdst
    Dec 27, 2013 at 19:10

3 Answers 3

3
+25

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.

1
  • Note, when I tried this it wanted me to run VS as administrator to fix it! Probably not an issue for most folks, but could be.
    – S'pht'Kr
    Mar 17, 2014 at 11:31
1

I have faced the same issue in a perticular scenario.

It was like, Page_Load event of 1st page contains code to redirect response to 2nd page and Page_Load event of 2nd page contains code to redirect response back to 1st page.

So due to this browser response fell into infinite loop and it shows message: "Internet Explorer cannot display the webpage".

So I'll suggest you to check the response redirection logic which may be causing problem.

2
  • This only happens in my environment. Others don't have this issue. We all share the same code. Although they use IIS and i use IIS Express.
    – surya
    Jul 18, 2013 at 14:09
  • This was the answer for me, Thanks Sanjeev. My master page was redirecting to the login screen if user wasn't logged in. The master page was also included in the login screen, so it kept redirecting to itself.
    – Rook
    Apr 29, 2015 at 2:52
0

If you work with a DI framework like Ninject and you are doing changes on your services dependencies, beware not to generate a circular dependency. When starting up the application you might get this same error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.