VS2010/Windows 7 ->无法连接到 ASP.NET 开发服务器

发布于 2024-09-01 20:31:10 字数 359 浏览 7 评论 0原文

我全新安装了带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黄昏下泛黄的笔记 2024-09-08 20:31:10

好的,弄清楚如何修复它:由于某种原因,我的主机文件注释了“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

白鸥掠海 2024-09-08 20:31:10

我遇到了这个问题,并尝试了上面的方法,但没有成功。环顾四周几分钟后,我意识到有人打开了互联网连接共享 - 将其关闭,然后一切又恢复正常。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文