当尝试在 Visual Studio 2010 中调试配置为使用 IIS Express 7.5 的 Web 应用程序时,我收到以下错误“无法启动 IIS Express Web 服务器”
当使用 /trace:error 开关从命令行运行时,我收到以下错误
C:\Program Files (x86)\IIS
Express>iisexpress.exe
/trace:error
启动 IIS Express
...
初始化 W3 服务器
已启动 CTC = 1857831
W3 服务器
初始化 WinSock。四氯化碳 =
1857847
W3 服务器 WinSock
已初始化。 CTC = 1857847
W3
服务器线程池已初始化(ipm 已
发出信号)。 CTC = 1857847
失败
调用 RegisterModule 进行
dll=C:\Program Files (x86)\IIS
Express\loghttp.dll,
mod=HttpLoggingModule
失败
处理 hr = 800706ba
加载全局模块时出错。小时=
800706ba
终止 W3_SERVER
object
启动listenerChannel
http:0
初始化 W3 服务器
已启动 CTC = 1858845
W3 服务器
初始化 WinSock。四氯化碳 =
1858861
W3 服务器 WinSock
已初始化。 CTC = 1858861
W3
服务器线程池已初始化(ipm 已
发出信号)。 CTC = 1858861
失败
调用 RegisterModule 进行
dll=C:\Program Files (x86)\IIS
Express\loghttp.dll,
mod=HttpLoggingModule
失败
处理 hr = 800706ba
加载全局模块时出错。小时=
800706ba
终止 W3_SERVER
对象
InitComplete 事件
发出信号
报告 ListenerChannel
因故障而停止;
协议ID:http,
ListenerChannelId:0
流程模型
已调用关机
正在等待所有
LISTENER_CHANNELS 停止
失败
启动“HostedWASStart”。错误=
34022648
HostableWebCore
激活失败。
无法
启动iisexpress。
注意 -
我曾多次尝试卸载并重新安装 IIS Express 7.5,但结果相同。
我运行的是 Windows 7 64 位计算机,
IIS Express 已经工作好几个月了,没有出现任何问题。今天早上重新启动计算机后,问题才开始出现。
When trying to debug a web application configured to use IIS Express 7.5 in Visual Studio 2010, I received the following error "Unable to launch the IIS Express Web server"
When running from the command line with the /trace:error switch I got the following
C:\Program Files (x86)\IIS
Express>iisexpress.exe
/trace:error
Starting IIS Express
...
Initializing the W3 Server
Started CTC = 1857831
W3 Server
initializing WinSock. CTC =
1857847
W3 Server WinSock
initialized. CTC = 1857847
W3
Server ThreadPool initialized (ipm has
signalled). CTC = 1857847
Failed
to call RegisterModule for
dll=C:\Program Files (x86)\IIS
Express\loghttp.dll,
mod=HttpLoggingModule
Failed
processing with hr = 800706ba
Error loading global modules. hr =
800706ba
Terminating W3_SERVER
object
Start listenerChannel
http:0
Initializing the W3 Server
Started CTC = 1858845
W3 Server
initializing WinSock. CTC =
1858861
W3 Server WinSock
initialized. CTC = 1858861
W3
Server ThreadPool initialized (ipm has
signalled). CTC = 1858861
Failed
to call RegisterModule for
dll=C:\Program Files (x86)\IIS
Express\loghttp.dll,
mod=HttpLoggingModule
Failed
processing with hr = 800706ba
Error loading global modules. hr =
800706ba
Terminating W3_SERVER
object
InitComplete event
signalled
Report ListenerChannel
stopped due to failure;
ProtocolId:http,
ListenerChannelId:0
Process Model
Shutdown called
Waiting for all
LISTENER_CHANNELS to stop
Failed
to start 'HostedWASStart'. Error =
34022648
HostableWebCore
activation failed.
Unable to
start iisexpress.
Notes -
I have tried uninstalling and re-installing IIS Express 7.5 a number of times with the same results.
I am running a Windows 7 64-bit machine
IIS Express has been working without issue for a number of months now. The issue only started after restarting my computer this morning.
发布评论
评论(13)
我昨晚更新了 Windows 后也遇到了同样的情况。因此,我所做的修复工作被重命名为自动创建的文件夹“IISExpress”,该文件夹在我的系统上位于“我的文档”文件夹中。然后我重新启动 VS,它为我重新创建了 IISExpress 文件夹 - 回到工作状态。然后再次启动VS,问题应该就解决了。至少它在我的系统上有效。
I got the same thing after doing a windows update last night. So what i did to fix mine was renamed the automatically created folder "IISExpress" which on my system was in the My Documents folder. Then I restarted VS and it recreated that IISExpress folder for me - back to working condition. Then launch VS again and the problem should be resolved. At least it worked on my system.
一些可能有帮助的建议:
您如何重新安装 iis-express?如果您还没有这样做,可以尝试重新安装 Visual Studio 2010 SP1,其中包含 iis-express。
尝试使用进程监视器来观察iis-express进程,以查看尝试时是否存在任何权限问题开始吧。
作为最后的手段,您可以通过修改位于
%userprofile%\documents\IISexpress\config
目录中的applicationhost.config
来禁用日志记录模块。为此,您需要注释掉文件中的几行。在
/
元素下,注释掉Under the
//
行> 元素,注释掉该行保存更改后尝试重新启动 iis express。
A couple of suggestions that may help:
How did you reinstall iis-express? If you haven't done so, you can try re-installing Visual Studio 2010 SP1, which contains iis-express.
Try using process monitor to watch the iis-express process to see if there are any permission issues when attempting to start it.
As a last resort, you can disable the logging module by modifying the
applicationhost.config
, which is located in the%userprofile%\documents\IISexpress\config
directory. To do so you will need to comment out a couple lines in the file.Under the
<system.webServer>/<globalModules>
element, comment out the lineUnder the
<location>/<system.webServer>/<modules>
element, comment out the lineAfter saving your changes try restarting iis express.
我遇到了同样的问题,为了解决这个问题,这就是我所做的
I was facing same issue and to solve this problem this is what I did
关闭视觉工作室。
删除应用程序的 applicationhost.config 文件 - 当您在 VS 中重新打开项目时,它将被重建。
Close Visual Studio.
Delete your application's applicationhost.config file - It will be rebuilt when you reopen the project in VS.
VS 的版本比原始问题新,但删除我的
.csproj.user
文件(其中包含本地的、项目特定的 IIS Express 设置),然后重新启动 VS 立即修复了该问题。Newer version of VS than the original question, but deleting my
<projectname>.csproj.user
file (which contains the local, project-specific IIS Express settings) and then restarting VS fixed it immediately.就我而言,我必须关闭 Windows 防火墙。似乎防火墙阻止本地 Web 服务器正常运行。即使我尝试手动允许 WebDev.WebServer40.exe 通过防火墙运行,我仍然收到此错误。
更新
允许通过防火墙 C:\Program Files\IIS Express\iisexpress.exe 和 iisexpresstray.exe
并且您可以打开防火墙。
In my case I had to turn off the Windows Firewall. Seems that firewall is blocking local Webserver to run properly. Even if I try to manually allow WebDev.WebServer40.exe to run through firewall I still get this error.
UPDATE
Allow through firewall C:\Program Files\IIS Express\iisexpress.exe and iisexpresstray.exe
and you can have turned on the firewall.
我尝试了所有这些答案,但没有一个有效。
就我而言,我发现
CustomUserHome
值是在HKEY_CURRENT_USER\Software\Microsoft\IISExpress
注册表项中设置的,显然 IISExpress 无法访问该值。我删除了该值,然后可以从 Visual Studio 再次启动。I tried all these answers, but none worked.
In my case I found that the
CustomUserHome
value was set in theHKEY_CURRENT_USER\Software\Microsoft\IISExpress
registry key, and apparently the value was not accessible to IISExpress. I removed the value and I could launch again from Visual Studio.当我尝试运行在 UNC 路径上创建的 MVC 项目时,我发现无法启动 IIS Express Web 服务器。当我将项目移动到本地磁盘时,它开始正常工作。
I got Unable to launch the IIS Express Web server when I tried to run a MVC project created on a UNC path. When I moved the project to the local disk, it started working fine.
我有同样的问题,但由于不同的原因。我将在这里发布我的解决方案,以便对其他人有所帮助。
在管理模式下打开命令提示符。
类型:netsh http 显示 iplisten
如果有任何条目:
类型:netsh http 删除 iplisten
重复此操作,直到所有内容都被删除,然后尝试再次运行 IIS Express。
希望这有帮助!
尼尔斯
I had the same issue but due to a different reason. I'll post my solution here so it may help others.
Open a commandprompt in admin mode.
TYPE: netsh http show iplisten
If there are any entries:
TYPE: netsh http delete iplisten
Repeat until all are removed and try to run IIS Express again.
Hope this helps!
Niels
如果您已安装 Web Matrix 程序并遇到此问题,则此说明可能会对您有所帮助。 http://blogs.msdn.com/b/finbar_ryan/archive/2013/01/02/debugging-the-unable-to-launch-the-iis-express-web-server-error-来自-visual-studio-2012.aspx
If you have installed the program Web Matrix and had this issue this instruction might help you. http://blogs.msdn.com/b/finbar_ryan/archive/2013/01/02/debugging-the-unable-to-launch-the-iis-express-web-server-error-from-visual-studio-2012.aspx
我有同样的错误,但用于安装的单个帐户。我有 Visual Studio 2010 SP1 和 w7 x64 中的 IIS 8 Express。我无法在 VS 冻结的情况下更改我的 Web 项目以使用 IIS Express。我卸载了 IIS 8 Express 并安装了 IIS 7.5 Express,我知道它可以在另一台计算机上运行。但是,我仍然遇到同样的问题。经过一段时间的尝试后,我发现“我的文档”中的 IISExpress 文件夹在卸载时并未被删除。我必须卸载,手动删除文件夹然后重新安装。第一次启动时,IISExpress fodler 被重新创建,现在可以按预期工作。
华泰
I had the same errors but for a single account used to install. I had Visual Studio 2010 SP1 with IIS 8 Express in w7 x64. I couldn't change my web project to use IIS Express without VS freezing. I uninstalled IIS 8 Express and installed IIS 7.5 Express which I knew worked on another machine. However, I still got the same problem. After some time trying things out I discovered the IISExpress folder in My Documents was not removed at uninstall. I had to uninstall, manually remove the folder then reinstall. At first start, the IISExpress fodler was recreated and now works as expected.
HTH
我的问题有点不同,但我在这里发布以防其他人发现这有用。我尝试使用 iisexpress 作为端口 80 上的本地网络服务器,但从 Win 7 升级到 Win 8 后,它给了我与上面类似的错误。最终有用的是通过管理工具下的服务控制面板应用程序停止名为“万维网发布服务”(W3SVC)的服务,并将其更改为手动启动。它打开了 80 端口,这就是问题所在。
My problem was a bit different, but I post here in case someone else could find this useful. I'm trying to use iisexpress as my local webserver on port 80, but after upgrading from Win 7 to Win 8 it gave me a similar error as above. The thing that finally helped was to stop the service called "World Wide Web Publishing Service" (W3SVC) via the Services control panel app under Administrative Tools, and change it to be started manually. It had port 80 opened, and that was the problem.
由于某种原因,以前的端口不再可用 - 也许是一个恶意进程。不管怎样,我增加了端口号,它又开始工作了。
For some reason the previous port was no longer available - perhaps a rogue process. Anyhow, I bumped up the port number and it started working again.