无法启动ASP.NET开发服务器,因为港口'1900'是在用 [英] Unable to launch the ASP.NET Development server because port '1900' is in use

本文介绍了无法启动ASP.NET开发服务器,因为港口'1900'是在用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/607562/visual-studio-development-server-using-wrong-port\">Visual使用错误的端口Studio开发服务器

我不知道今天已经钻进了我的电脑。我是开发在VS 2008中就好了,我的开发服务器上测试我的ASP.NET web站点。

I don't know what has got into my computer today. I was developing just fine in VS 2008 and testing my ASP.NET web site on my development server.

突然,出蓝色的,我不能运行我的网站了!当我按下F5,将出现消息:无法启动ASP.NET开发服务器,因为港口'1900正在使用中。它并不重要港口我改变,它总是在使用! AAARRRGGGHH!

Then suddenly, out of the blue, I can't run my web site any more! As soon as I hit F5, the message appears: Unable to launch the ASP.NET Development server because port '1900' is in use. And it doesn't matter what port I change to, it's always in use! AAARRRGGGHH!!!

我曾尝试:


  • 更改端口号

  • 重新启动Visual Studio中

  • 重新启动我的机器

  • 安装IIS

线索:我的IIS拒绝启动。但我没有安装IIS,当我兴高采烈地工作较早,所以这可能不是问题;它可能只是别人的东西凸显...

Clue: My IIS refuses to start. But I didn't have IIS installed when I was happily working earlier, so that is probably not the issue; it might just be highlighting something else...

在此先感谢...

更新:重新​​启动后,IIS不启动,但这里的问题仍然存在。

Update: after rebooting, IIS does start, but the problem here persists.

推荐答案

简单地结束所有Webdev.WebServer.exe流程 - 做的把戏我。
有时这种无法启动,因为端口正在使用错误发生在Visual Studio的过程(webdev.webserver.exe)之一仍在运行并锁定。当您关闭浏览器或应用webdev.webserver工艺(S)应该结束了,但如果他们不(比如我的Visual Studio的崩溃,但如果离开了网络服务器仍在运行),那么这可能会锁定该端口,这将$​​ P $ pvent视觉发动你的项目工作室。当您尝试F5您的应用程序(启动从Visual Studio应用程序),那么它在使用和当前端口上述冲突'的,因为端口XYZ正在使用的'会显示错误。

Simply end all Webdev.WebServer.exe processes - did the trick for me. Occasionally this 'unable to launch because port is in use' error happens when one of the visual studio processes (webdev.webserver.exe) is still running and locked. The webdev.webserver process(s) should end when you close your browser or app but if they dont (for instance my Visual Studio crashed but if left the webserver still running) then this could lock the port and this will prevent visual studio from launching your project. When you try to F5 your app (launch your application from visual studio) then it conflicts with the current port in use and the above 'because port XYZ is in use' error is displayed.

因此​​,要解决这个问题:在状态栏(旁边的窗户时钟)右键单击并停止所有ASP.net开发服务器的图标。您还可以打开任务管理器,并杀死所有的webdev.webserver.exe进程。

So to fix it: in the status bar (next to your windows clock) right-click and 'Stop' all the ASP.net development server icons. You can also open task manager and kill all the webdev.webserver.exe processes.

这篇关于无法启动ASP.NET开发服务器,因为港口'1900'是在用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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