为什么以及如何解决? IIS Express“指定的端口正在使用中". [英] Why and how to fix? IIS Express "The specified port is in use"

查看:134
本文介绍了为什么以及如何解决? IIS Express“指定的端口正在使用中".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道在Visual Studio中为Web应用程序分配了一个随机端口号.它可以在我的办公室桌面上正常工作.但是,当我将代码提取到便携式计算机(来自VisualStudio.com)并运行Web应用程序时.我收到一条消息,说,

We know a random port number is assigned to a web application in Visual Studio. It works fine in my office desktop. But when I pull the code onto my laptop (from VisualStudio.com) and run the web app. I got a message, saying,

端口10360已被另一个应用程序使用.

Port 10360 is already being used by another application.

  1. 尝试切换到10360以外的端口和高于1024的端口.
  2. 停止正在使用端口10360的应用程序.


我可以通过将端口更改为13333这样的方式使用Recommendation #1对其进行修复.但是我很好奇端口10360发生了什么.如何检查使用端口10360的应用程序?如何停止该应用程序?


I can fix it using Recommendation #1 by changing the port into something else like 13333. But I am very curious what happened to port 10360. How can I check what application is using port 10360? How can I stop that application?

推荐答案

我以这种方式解决了问题...

i solve the problem this way...

文件-> 打开-> 网站...

File -> Open -> Web Site...

然后,在 IIS Express网站下选择本地IIS 删除不需要的项目.

After that select Local IIS under IIS Express Site remove the unwanted project.

希望获得帮助.

这篇关于为什么以及如何解决? IIS Express“指定的端口正在使用中".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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