本地主机查找失败,浏览器尝试www.localhost.com代替 [英] localhost lookup fails, browser tries www.localhost.com instead

查看:177
本文介绍了本地主机查找失败,浏览器尝试www.localhost.com代替的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经在我的笔记本电脑上运行的Web应用程序的时候,没有问题,我使用VWD 2008年防爆preSS,我有最新的框架,Windows Vista家庭基本...等。
现在,当过我尝试运行一个网站,甚至选择了从在VWD,浏览器(IE和火狐)显示在浏览器页面不断寻找www.localhost.com ...

我试图复制的地址,并在标题栏,什么都没有,同样的问题,它直接贴我试图让从气球通知地址(当你运行任何ASP.net项目,弹出一个),仍什么也没有发生......

我的同事也面临同样的问题,但对他来说,他可以简单地复制并粘贴到地址栏中的URL,但它不是我的工作.... Heeeeeellllllllllllllllp


解决方案

检查您的 hosts文件,它应该是本地主机重定向到127.0.0.1而不是其他。这将导致此错误记录应该是这样的:

  127.0.0.1 www.localhost.com

如果你发现这一点,删除或更改www.localhost.com为localhost。

您也可以尝试后,这些人在您的地址栏:

  127.0.0.1
HTTP://本地主机

请注意主机文件是病毒流行的受害者,因此如果已被修改,可能会运行病毒检查。

另外这里看到讨论。<​​/ P>

I used to run web applications all the time on my laptop, no problems, I am using VWD 2008 Express, i have the latest framework, Windows Vista Home Basic...etc.. Now, when ever i try to run a website, or even chose to Show a Page in Browser from Within VWD, the browser (both IE and Firefox) keeps looking for www.localhost.com...

I tried to copy the address of and paste it directly in the title bar, nothing, same problem i tried to get that address from the balloon notification (the one that pops up when you run any ASP.net project), still nothing happens...

My colleague is facing the same problem, but for him, he can simply copy and paste the url in the address bar, but its not working with me....Heeeeeellllllllllllllllp

解决方案

Check your hosts file, it should be redirecting localhost to 127.0.0.1 and nothing else. The entry that will cause this error should look like this:

127.0.0.1    www.localhost.com

If you find this, remove it or change www.localhost.com to localhost.

You can also try to post one of these in the adress bar:

127.0.0.1
http://localhost

Note that the hosts file is a popular victim of viruses, so if is has been modified, you might run a check on viruses.

Also see the discussion here.

这篇关于本地主机查找失败,浏览器尝试www.localhost.com代替的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆