Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Waiting for localhost, forever!

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.

like image 364
Ace Troubleshooter Avatar asked Apr 18 '11 14:04

Ace Troubleshooter


People also ask

How do I fix localhost waiting?

Check firewall for blocked ports, change dynamic ports of application to some fixed port. Changes in Firewall settings may be a leading cause.

Why is my localhost not loading?

It is triggered if the firewall wrongly blocks your server or you're using the wrong port. The localhost error can also happen if your Apache web server or Chrome browser is not configured correctly.

What does waiting for local host mean?

If you are using a fast internet connection, the actual loading time of a webpage is about 2 secs, however due to resource shortage or ping issues as a result of which you may receive a Waiting for local host message. We would suggest you to use Internet Explorer and check if it helps.

Why does localhost keep loading?

Re: localhost keeps on loading, how to fix it? You should try using the Netstat button to see if both ports 80 & 443 are free. Its also possible that an OS error is preventing it from running. Check the Windows Event Viewer, Applications and System logs.


7 Answers

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

like image 163
Ace Troubleshooter Avatar answered Oct 04 '22 22:10

Ace Troubleshooter


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.

like image 27
NotMe Avatar answered Oct 04 '22 23:10

NotMe


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...

like image 24
Ian G Avatar answered Oct 04 '22 23:10

Ian G


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

like image 45
onezeno Avatar answered Oct 04 '22 22:10

onezeno


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

like image 30
kfn Avatar answered Oct 04 '22 23:10

kfn


Try to not use localhost but your local ip address.

like image 39
botenvouwer Avatar answered Oct 04 '22 23:10

botenvouwer


I had the same thing happen; If you are on a VPN connection, you may need to change your web.config file to use your database IP instead of the name (if you have DNS issues with VPN). This won't help the OP but someone else may find this useful.

like image 27
JackArbiter Avatar answered Oct 04 '22 23:10

JackArbiter