IIS Express报告所有已经在使用的端口

发布于 2025-02-11 18:06:57 字数 276 浏览 0 评论 0原文

当我尝试通过在Visual Studio中调试ASP.NET应用程序来运行IIS Express时,我会收到一条错误消息,说明另一个应用程序正在使用该端口,无论我在“ Web”下的项目属性中选择了哪个端口。为什么?

When I try to run IIS Express by debugging an asp.net application in visual studio, I get an error message that the port is being used by another application, regardless of which port I select in the project properties under "Web". Why?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

故事与诗 2025-02-18 18:06:57

源相同的问题,更改任何端口的错误是相同的错误,但是...

在高架CMD中运行后。

netsh http add iplisten ipaddress=::

然后

netsh interface ipv4 show excludedportrange protocol=tcp

看到我在“随机选择”范围内管理了一些端口,

​对于不在托管端口中的范围,我能够再次进行调试。

Fount the same issue, changing any port was getting the same error but...

after running in a elevated CMD:

netsh http add iplisten ipaddress=::

and then

netsh interface ipv4 show excludedportrange protocol=tcp

Saw some ports being managed in the range I was "randomly selecting"

enter image description here

After changing to a range that was not in the managed ports, I was able to debug again.

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