visual studio 2008 localhost URL

时间:2014-03-20 02:56:07

标签: asp.net visual-studio-2008

每当我尝试调试我的网站时,请按F5键。它始终以此地址开头

http://localhost:xxxxx/Default.aspx

但除非我将localhost更改为127.0.0.1,否则网站不会运行。即使它是localhost,我如何允许它运行而不必在我的项目属性中指定URL?

1 个答案:

答案 0 :(得分:1)

将localhost 127.0.0.1添加到主机文件ref http://helpdeskgeek.com/windows-7/windows-7-hosts-file/