IIS Express Web 服务器 - (每个)端口正在使用中?
今天我安装了 VS2010 SP1 Beta 和 IIS 7 Express,因为我的本地开发计算机上目前有 IIS5,并且我想尝试一下 IIS Express。
我已进入 Web 应用程序的属性窗口,选中“使用 IIS Express”复选框,在提示时创建虚拟目录,但随后收到消息“无法启动 IIS Express Web 服务器。端口 x 位于使用”。
我尝试将端口号从其中的默认值更改为许多其他端口号,但无论那里的值是什么,我总是收到此消息,因此无法使用 IIS Express Web 服务器。
有谁知道问题可能是什么,以及如何解决它?
Today I installed VS2010 SP1 Beta, and IIS 7 Express, as I currently have IIS5 on my local development machine and thought I'd try IIS Express out.
I have gone into the properties window for my Web Application, checked the 'Use IIS Express' checkbox, created the Virtual Directory when it has prompted me, but then get the message "Unable to launch the IIS Express Web Server. Port x is in use".
I have tried changing the port number from the default value that was in there, to numerous other port numbers, but whatever value is there, I am always getting this message, and am therefore unable to use the IIS Express Web Server.
Does anyone know what the problem might be, and how to get around it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
如果您使用的是ESET NOD32 Anti Virus,则需要更改“Web访问保护”的设置=> HTTP、HTTPS =>网络浏览器 => 红十字你的devnev.exe的复选框(这是三个状态的复选框,点击复选框直到出现红十字)
我刚刚安装了VS 2010 SP1,使用上面的设置告诉 NOD32 不理会“IIS Express”。
参考: http://weblogs.asp.net/anasghanem/archive/2009/02/01/nod32-antivirus-is-blocking-visual-studio-built-in-development-server.aspx
If you are using ESET NOD32 Anti Virus, you need to change the setting of "Web access protection" => HTTP, HTTPS => Web browsers => red cross the check box of your devnev.exe (This is three state checkboxs, click the check box until red cross appeared)
I have just installed VS 2010 SP1, using the above setting to tell NOD32 to leave 'IIS Express' alone.
Reference: http://weblogs.asp.net/anasghanem/archive/2009/02/01/nod32-antivirus-is-blocking-visual-studio-built-in-development-server.aspx
您使用什么版本的操作系统?
您可以从命令行启动 IIS Express 吗?您可以尝试以下操作并发布您看到的错误消息吗?
删除“我的文档”文件夹下的 IISExpress 目录
转到 IIS Express 安装文件夹“%programfiles%\IIS Express”(在 64 位计算机上) '%programfiles(x86)\IIS Express') 并尝试从命令行启动 iisexpress.exe(不传递任何参数)
What version OS are you using?
Are you able to start IIS Express from command line? Could you try the following and post the error message you are seeing.
Remove IISExpress directory located under 'My documents' folder
Go to IIS Express installation folder '%programfiles%\IIS Express' (on 64-bit machine '%programfiles(x86)\IIS Express') and try to start iisexpress.exe from command line (without passing any arguments)
我有类似的问题。看起来,如果 IIS Express 已经在运行特定站点,然后您尝试通过 Visual Studio 运行使用该站点的项目,则它无法附加调试器。解决方案是关闭所有正在运行的 IIS Express 和 WebMatrix 实例,然后尝试通过 Visual Studio (F5) 运行该网站。
我建议安装 WebMatrix,因为它是管理您正在使用的站点和端口号的最简单方法。
I had a similar problem. It seems that if IIS Express is already running a particular site and then you try to run a project that uses that site through Visual Studio it isn't able to attach the debugger. The solution was to close any running instances of IIS Express and WebMatrix and then try running the site through Visual Studio (F5).
I recommend installing WebMatrix as it's the simplest way of managing the sites and port numbers that you are using.
我在 Visual Studio 2012 中遇到同样的问题。
我正在为 SharePoint 2013 创建一个共享点应用程序,它发生在几天后意味着它在我收到错误之前正在工作:
要解决此问题,我只需右键单击项目解决方案选项卡下右侧面板中的项目节点即可进入 Web 项目的设置。更改端口号并配置虚拟目录,它对我有用,
希望它对其他人有用,以防他/她有任何问题。
I have the same problem in the visual studio 2012.
I am creating a sharepoint app for the SharePoint 2013 and it happened after some days means it was working before then I got the error:
To fix this I just went to the settings of the web project by right clicking on the project node in in right panel under the project solution tab. Change the port number and configure the virtual directory and it worked for me.
Hope it work for anyone else in case he/she has any problem.
1- 关闭 Visual Studio。
2- 删除文档中的 IIS Express 文件夹或编辑
applicationhost.config
:3- 删除解决方案文件。
4-启动 Visual Studio 并使用打开的网站。
5- 选择您的网站文件夹。
1- Close Visual Studio.
2- Delete IIS Express folder in Documents or edit
applicationhost.config
:3- Delete solution file.
4- Start Visual Studio and use open website.
5- Choose your website folder.
如果任何机构仍然面临同样的问题......即使在尝试了上述所有步骤之后
尝试以下简单步骤...
1) 关闭所有其他应用程序
2) 从以下位置下载 TcpView 应用程序
3) 运行应用程序,检查本地端口列并查看谁正在使用该特定端口
并结束该任务
这将解决你的问题......:)
If any body still facing the same issue ... even after trying all the above steps
try the following simple steps...
1) close all other applications
2) Download TcpView application from
3) run the application, check the localport column and see who is using that specific port
and end that task
That will solve your problem ... :)
转到解决方案资源管理器,右键单击当前应用程序,然后转到属性,现在单击网页,滚动鼠标并更改端口号。来自项目本地主机:1257
现在运行它...
go to solution explorer, right click on the present Application then go to properties, now click on web scroll the mouse and change the port no. from project localhost:1257
NOW RUN IT...