views:

372

answers:

3

When I yesterday returned to Visual Web Developer I was no longer able to run/debug my projects. Clicking the green play button launches ASP.NET Development Server (and it shows up in the systray) but the browser only shows the error message "Firefox is not able to connect to localhost:58127" (translated from Swedish). IE7 says "Cannot show web page".

I cannot figure out why this happens. It worked a couple of weeks back. Could there be a Windows setting that mess things up? (I've tried to disable the firewall without any change.)

+1  A: 

Are you perhaps using NOD32 or any other antivirus that may cause problems?

Magnus Johansson
No I don't, but it's the exact same symptoms. I came to thing of Fiddler that I installed a few days back. Could that be it? Somehow it works in between things. I uninstalled it now but still no difference.
matpe
Well, I have also seen issues with Fiddler when accessing certain web pages. But these issues was solved by just disabling the Capture Events menu item.
Magnus Johansson
+2  A: 

Are you using Vista? I've had the same issues with recent Vista updates.

Firstly, make sure Visual Studio is running "As Administrator".

Secondly, when the browser launches, replace "http://localhost:" with "http://127.0.0.1:". If that works, then its because a Windows Update messed up your hosts file.

If this is the case, make sure you hosts file has this line in it, uncommented: "127.0.0.1 localhost"

my hosts file is in this directory: "C:\Windows\System32\drivers\etc"

yours will be something similar to that.

andy
That was it! When putting the ip in the browser's address field it suddenly worked. A quick update of the hosts file (which contained "::1 localhost") and a restart, everything is up an running again. Thanks for your help and happy easter!
matpe
haha, no problem man, happy easter to you too. Yeah, watch out for those updates, they've been messing up all my network stuff??
andy
A: 

hai VIBIN

U r prefect....my error is FIXED in seconds...

i just download and past the file in the path u specified....ThAnKs ThAnKs ThAnKs ThAnKs ThAnKs ThAnKs ThAnKs ThAnKs ThAnKsThAnKs

raj