我尝试通过visual studio运行我的web服务。我遇到了这样的问题:
---------------------------
Microsoft Visual Studio
---------------------------
Unable to launch the IIS Express Web server.
Failed to register URL "http://localhost:63591/" for site "xxxxxx" application
"/". Error description: The process cannot access the file because it is being
used by another process. (0x80070020)
---------------------------
OK
---------------------------
我看到了任务管理器,发现系统使用了PID 4,它的描述是NT Kernel & System.
,所以我尝试停止http service
。所有依赖项服务都已停止。但是我在停止http服务时遇到了一个问题,比如
The service is starting or stopping. Please try again later.
因此,我尝试手动停止和启动该服务。但是End进程被禁用。如果有人能在这个问题上提供帮助,那将是很有帮助的
发布于 2016-10-21 19:45:49
在我们将解决方案从Visual Studio 2012升级到2015年后,我遇到了同样的问题。我来到这里并运行netstat
,结果发现没有其他应用程序在使用相同的端口。事实证明,我在Users/<username>/Documents/IISExpress/config
的applicationhost.config
和我的解决方案中.vs
文件夹中的applicationhost.config
中映射了相同的站点和相同的端口。我应该指出的是,问题也不是在升级之后立即开始的。它只是在一天早上开始不断地失败。几次重启似乎也没有解决这个问题。
从my Documents中存储的站点中删除冲突的站点并重新启动Visual Studio解决了该问题。
https://stackoverflow.com/questions/29116292
复制相似问题