Waiting for localhost, forever!

57,296

Solution 1

My trainer came up with a brilliant solution, he shut down VS 2010 and restarted it. Problem solved.

Solution 2

Almost sounds like the database connection is going off neverland.

If your timeout on the connection and/or command is set pretty high, like 300 (which is 5 minutes) then it would appear to just hang forever if it is unable to make that connection.

The first thing I'd try is to set the connection timeout to something reasonable like 15 seconds in the web.config.

Then I'd run it again.

Assuming you get a connection failure, I'd use another tool to try and connect to the database using the settings in your web.config.

Solution 3

Does this only happen on debug (ie F5)?

If that is the case, my guess is that you are hitting a breakpoint?

If you hit a break point, the browser appears to be dead... but in fact VS is waiting on you to respond...

Solution 4

I found that creating a new app pool, then assigning the (already created) web site to it resolved this.

Solution 5

I shut down iis, stopped debugging the site in visual studio, and restarted with F5 ;-)

Share:
57,296
Ace Troubleshooter
Author by

Ace Troubleshooter

All glory to the hypnotoad.

Updated on July 31, 2022

Comments

  • Ace Troubleshooter
    Ace Troubleshooter almost 2 years

    I have a gridview on my homepage with a view and an edit link that use query strings to display table data in read-only and editable pages, respectively. I get no error messages from my code, it's simple enough that it doesn't seem to be missing anything, but when I try to debug or view in browser, I get the permanent pinwheel on my status bar and the message "waiting for localhost". What am I missing? Does anyone out there have some experience with this particular issue? I'm using C# and ASP.NET in visual studios with sql server 2008.