VS2010/Windows 7 ->无法连接到 ASP.NET 开发服务器
我全新安装了带有 VS2010 RTM 的 Windows 7,并尝试让 ASP.NET 开发服务器正常工作。
当我运行该项目时,WebDev 服务器启动并显示它正在侦听本地主机上的端口 x。
我尝试过:
telnet
到端口。端口没有监听。- 运行
netstat -o
显示 WebDev 服务器实际上没有侦听任何端口。 - 手动将WebDev端口更改为其他端口并重新启动VS但没有效果。
我完全关闭了 Windows 防火墙,并且也没有运行任何其他防火墙软件。
知道这里会发生什么吗?
谢谢!
I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work.
When I run the project, the WebDev server starts and shows that it's listening on port x on localhost.
I've tried:
telnet
to the port. The port is not listening.- running
netstat -o
shows that the WebDev server is in fact not listening on any port. - manually changing the WebDev port to a different port and restarted VS without effect.
I have Windows Firewall turned off entirely and am not running any other firewall software either.
Any idea what could be going on here?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,弄清楚如何修复它:由于某种原因,我的主机文件注释了“127.0.0.1 localhost”,所以我假设 WebDev 服务器尝试绑定到 localhost,但它无法解析到 127.0.0.1 地址。在我取消注释该行并重新启动 VS 后,WebDev 服务器工作正常
ok, figured out how to fix it: For some reason my hosts file had "127.0.0.1 localhost" commented, so I'm assuming WebDev server tried to bind to localhost but it couldn't resolve to the 127.0.0.1 address. After I uncommented that line and restarted VS, the WebDev server works fine
我遇到了这个问题,并尝试了上面的方法,但没有成功。环顾四周几分钟后,我意识到有人打开了互联网连接共享 - 将其关闭,然后一切又恢复正常。
I had this problem and tried the above, but it did not work. After a few mins looking around I realised someone had turned on internet connection sharing - turned this off and then all worked well again.