Hi I have just starting getting the above message when trying to run my application locally, this is the first time it has happened, I have not recently installed any new software or antivirus software. The only antivirus software I have running is Avira AntiVir.
I have not made any changes to my firewall, web.config or application properties. running VS2008. Any help appreciated.
Hi don't have SQL server locally, that is on a remote site, there is nothing showing at all in the event viewer, tried a reboot ans still getting the same message. This is really odd, it was working fine this morning. Now just getting page cannot be display,
can't even administer the website.
Check your SQL connection with SQLAdapter if you are able to connect it is clear that it is not problem with your DB server. Usually the VS 2008 got the privilege to open ports dynamically on the system while debugging.
You cannot teach a man anything; you can only help him to find it within himself.
I don't think SQL is the issue, I create a new website with nothing in it and it still won't run locally. just keep getting page not found, then i diagnose the problem and get the same Localhost not able to establish a connection on port (whichever port
number it takes)
panzer
Member
187 Points
82 Posts
Localhost not able to establish a connection on port ...
Mar 10, 2009 07:55 PM|LINK
ServerIntell...
Member
110 Points
16 Posts
Re: Localhost not able to establish a connection on port ...
Mar 10, 2009 08:47 PM|LINK
Hello,
Can you verify the SQL Service is running? (Start -> Administrative Tools -> Services)
I would also look in the Event Viewer for any errors.
You may also want to try rebooting to see if that resolves the issue.
If you see any errors in the Event Log or can post the full exact error here, it will help troubleshoot the issue.
Hope this helps!
Technical Support Representative
http://www.ServerIntellect.com
Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
panzer
Member
187 Points
82 Posts
Re: Localhost not able to establish a connection on port ...
Mar 10, 2009 09:24 PM|LINK
omalbose
Member
316 Points
63 Posts
Re: Localhost not able to establish a connection on port ...
Mar 11, 2009 05:38 AM|LINK
Hi
Check your SQL connection with SQLAdapter if you are able to connect it is clear that it is not problem with your DB server. Usually the VS 2008 got the privilege to open ports dynamically on the system while debugging.
panzer
Member
187 Points
82 Posts
Re: Localhost not able to establish a connection on port ...
Mar 11, 2009 08:03 AM|LINK
Hi
I don't think SQL is the issue, I create a new website with nothing in it and it still won't run locally. just keep getting page not found, then i diagnose the problem and get the same Localhost not able to establish a connection on port (whichever port number it takes)
panzer
Member
187 Points
82 Posts
Re: Localhost not able to establish a connection on port ...
Mar 11, 2009 10:12 AM|LINK
Commented out the line
::1 LocalHost
with a # in the hosts file and it now works.
Question is, where did that suddenly come from, has a Microsoft update done it?
foreverlearn...
Member
5 Points
12 Posts
Re: Localhost not able to establish a connection on port ...
Mar 11, 2009 07:52 PM|LINK
Hi Panzer. I guess your solution is VERY GOOD. You are THE MAN.
I was going crazy over this and your solution solved my problem.
Thanks a Million.....
EK
omalbose
Member
316 Points
63 Posts
Re: Localhost not able to establish a connection on port ...
Mar 12, 2009 02:37 AM|LINK
can you expalin how you solved the issue??
asmund
Member
38 Points
16 Posts
Re: Localhost not able to establish a connection on port ...
Mar 12, 2009 09:08 AM|LINK
This update caused this:
Definition Update for Windows Defender - KB915597 (Definition 1.53.256.0)
It caused a removal of the IP mapping to localhost in the hosts file located in
C:\Windows\system32\drivers\etc\
You should include this line to the hosts file:
127.0.0.1 localhost
See this thread for details:
http://forums.cnet.com/5208-6132_102-0.html?threadID=334042
pheng_vue3
Member
2 Points
1 Post
Re: Localhost not able to establish a connection on port ...
May 01, 2009 04:56 AM|LINK
OMG! I've been trying to fix this forever!!!! THANKS SO MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Hopefully, Microsoft will catch on. Incredible work man!