IIS Express Web服务器端口正在使用中 [英] IIS Express Web Server Port Is In Use

查看:75
本文介绍了IIS Express Web服务器端口正在使用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常可以毫无问题地调试我的Web服务,但是现在我始终遇到错误无法启动IIS Express Web服务器.正在使用端口3268".我已经看过以前对此的疑问,但是我被困住了:

I can normally debug my web service with no problem, but now I persistently get error "Unable to launch the IIS Express Web Server. Port 3268 is in use". I have looked at previous questions about this, but I am stuck:

  • 我使用哪个端口都没有关系

  • it doesn't matter what port I use

重新启动,关闭Web浏览器,删除Web历史记录等均失败

rebooting, closing web browser, deleting web history etc all fail

TCPView之类的工具显示未使用该端口

tools like TCPView show that the port is NOT in use

我可以从命令提示符下启动/停止IISExpress

I can start/stop IISExpress from a command prompt OK

通常,地址localhost:3268在浏览器中显示一条错误消息-但是在Visual Studio中加载项目后(开始调试项目或对其进行任何操作之前),localhost:3268显示浏览器中的网页

normally, address localhost:3268 shows an error message in a browser - but after loading the project in Visual Studio (and BEFORE starting to debug the project, or doing anything at all to it), localhost:3268 shows a web page in the browser

推荐答案

克里希纳(Krishna)提供的链接启发了我打开IIS,发现IIS中有一个具有相同端口的本地网站(这是相同的Web服务). .我删除了它,现在我可以再次调试我的应用程序.

The link that Krishna provided inspired me to open IIS and discover that there was a local web site in IIS with the same port (it was the same web service). I deleted that, and now I can debug my application again.

我无法解释为什么我看不到正在使用的端口,为什么当在Visual Studio中加载项目时它开始提供网页,以及为什么我看不到IIS正在任务管理器中运行.我猜想Visual Studio实际上正在以某种方式运行它.

I cannot explain why I couldn't see the port in use, why it started offering the web page when the project was loaded in Visual Studio, and why I couldn't see that IIS was running in the task manager. I am guessing that Visual Studio was actually running it somehow.

感谢所有受访者的帮助!

Thanks to all respondents for their help!

这篇关于IIS Express Web服务器端口正在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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