简体   繁体   English

IIS w3svc 错误

[英]IIS w3svc error

I am trying to start my website in IIS, whenever I try to start my website I get the following error我正在尝试在 IIS 中启动我的网站,每当我尝试启动我的网站时,我都会收到以下错误

Cannot start service w3svc on computer无法在计算机上启动服务 w3svc

I tried to start "World wide web publishing service", but I was unable to start it as it said:我试图启动“全球 web 发布服务”,但我无法启动它,因为它说:

Error 1068: The dependency service or group failed to start错误 1068:依赖服务或组无法启动

Meanwhile when I checked my log I found this error,同时,当我检查我的日志时,我发现了这个错误,

The World Wide Web Publishing Service service depends on the HTTP service which failed to start because of the following error: World Wide Web Publishing Service 服务依赖于 HTTP 服务,由于以下错误无法启动:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.该服务无法启动,因为它被禁用或者因为它没有与之关联的启用设备。

Please help me, I am badly caught with this error, I have spent a week researching this error but haven't found a solution yet.请帮助我,我被这个错误严重抓住了,我花了一周的时间研究这个错误,但还没有找到解决方案。

Well finally after a week struggle, I came to a solution.好吧,经过一周的努力,我终于找到了解决方案。 I am listing down the steps which I followed to solve my error:我列出了解决错误所遵循的步骤:

  1. Confirm that "Windows Management Instrumentation" is started and its start up type is set to automatic .确认“Windows Management Instrumentation”已启动并且其启动类型设置为automatic

  2. Also make sure the following dependency services are started for World Wide Web Publishing Service:还要确保为万维网发布服务启动了以下依赖项服务:

    • Windows Process Activation Service Windows 进程激活服务
    • Remote Procedure Call (RPC)远程过程调用 (RPC)
    • DCOM Server Process Launcher DCOM 服务器进程启动器
    • RPC Endpoint Mapper. RPC 端点映射器。
  3. Open regedit, navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP] :打开 regedit,导航到[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP]
    a) Double click on Start and change value data from 4 (disabled) to 3 (automatically). a) 双击Start并将数值数据从4 (禁用)更改为3 (自动)。
    b) Delete "NoRun" key if this key exists. b) 如果该键存在,则删除"NoRun"键。

  4. (warning: backup any IIS website configuration first) . (警告:首先备份任何 IIS 网站配置) UN-install "Internet information Service" and "Windows process activation service(if it is already installed)" from "Turn windows feature on or off" and Restart your PC.从“打开或关闭 Windows 功能”中卸载“Internet 信息服务”和“Windows 进程激活服务(如果已安装)”并重新启动您的 PC。

  5. Type the below command in CMD and press enter:在 CMD 中键入以下命令并按回车键:

     net start http

Now it will notify you that service is already running.现在它会通知您服务已经在运行。

  1. Re-install Internet information Service from "Turn windows feature on or off".从“打开或关闭 Windows 功能”重新安装 Internet 信息服务。

  2. Start IIS and my websites are started now, no more "w3svc service is not running error."启动 IIS,我的网站现在已经启动,不再出现“w3svc 服务未运行错误”。

至于我 - 我刚刚重新启动计算机。

Make sure these 2 services running and their startup type is automatic.If they disabled and not running right click on them and go to properties and change from there.确保这两个服务正在运行并且它们的启动类型是自动的。如果它们被禁用并且没有运行,请右键单击它们并转到属性并从那里更改。

  1. Windows process activation service Windows 进程激活服务
  2. Worldwide web publishing service.全球网络出版服务。

Run cmd as administrator.以管理员身份运行cmd。 Type iisreset .键入iisreset That's it.而已。

Go to Task Manager --> Processes and manually stop the W3SVC process.转到任务管理器 --> 进程并手动停止 W3SVC 进程。 After doing this the process should start normally when restarting IIS完成此操作后,重新启动 IIS 时该过程应正常启动

In my case, IIS suddenly stoped working, and after that Windows process activation service was unable to restart.就我而言,IIS 突然停止工作,之后 Windows 进程激活服务无法重新启动。

The solution to fix this was:解决此问题的解决方案是:

  1. Find WAS service in the services tab of windows task manager在 windows 任务管理器的服务选项卡中找到WAS服务
  2. In context menu choose Go to process在上下文菜单中选择Go to process
  3. Kill process (its name will be svchost.exe)杀死进程(其名称将是 svchost.exe)
  4. Restart Windows process activation service重启Windows进程激活服务

Hope it will be usefull.希望它会有用。

In my case it was C:\Windows\System32\inetsrv\config\applicationHost.config which had an issue.在我的情况下,它是 C:\Windows\System32\inetsrv\config\applicationHost.config 有问题。 I had a "system.web" section in this file which was causing the problem.我在这个文件中有一个“system.web”部分导致了问题。 Removed the section and everything started working删除了该部分,一切都开始工作

I have got same issue on my server.我的服务器上有同样的问题。 Follow below steps -请按照以下步骤操作 -

  1. Open command prompt (run as administrator)打开命令提示符(以管理员身份运行)
  2. type IISReset and enter.键入 IISReset 并输入。

It works and solved my problem.它有效并解决了我的问题。

I have had this problem after a windows update. windows更新后我遇到了这个问题。 Windows Process Activation Service is dependent service for W3SVC. Windows Process Activation Service 是 W3SVC 的依赖服务。 First, make sure that Windows Process Activation Service is running.首先,确保 Windows Process Activation Service 正在运行。 In my case, it was not running and when I tried to run it manually, I got below error.就我而言,它没有运行,当我尝试手动运行它时,出现以下错误。

Windows Process Activation Service Error 2: The system cannot find the file specified Windows Process Activation Service 错误2:系统找不到指定的文件

The issue seems to be, that windows adds an incorrect parameter to the WAS service startup parameters.问题似乎是,Windows 向 WAS 服务启动参数添加了不正确的参数。 I fixed the issue using the following steps:我使用以下步骤解决了这个问题:

  • Start regedit (just type it into start) Navigate to启动 regedit(只需将其输入开始)导航到

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters

  • Delete the NanoSetup variable.删除 NanoSetup 变量。 This variable is preventing WAS from starting此变量阻止 WAS 启动

  • Start the WAS service using task manager使用任务管理器启动 WAS 服务

  • Now start the W3SVC service现在启动 W3SVC 服务

  • You can now start your website in IIS again您现在可以再次在 IIS 中启动您的网站

I found above WPA service solution in this stack overflow thread.我在这个堆栈溢出线程中找到了上面的 WPA 服务解决方案。

None of the answers above helped me.上面的答案都没有帮助我。

It turns out my Net.Tcp Port Sharing Service was disabled.原来我的Net.Tcp 端口共享服务被禁用了。 I changed its startup to manual, started the service, and then IISRESET worked .我将其启动更改为手动,启动服务,然后 IISRESET 工作

I also verified that the following dependent services were started in Services ([windows]+[r] services.msc):我还验证了以下依赖服务已在 Services ([windows]+[r] services.msc) 中启动:

  • World Wide Web Publishing Service万维网出版服务
  • Windows Process Activation Service Windows 进程激活服务
  • Remote Procedure Call (RPC)远程过程调用 (RPC)
  • DCOM Server Process Launcher DCOM 服务器进程启动器
  • RPC Endpoint Mapper RPC 端点映射器
  • Net.Msmq Listener Adapter Net.Msmq 侦听器适配器
  • Net.Pipe Listener Adapter Net.Pipe 侦听器适配器
  • Net.Tcp Listener Adapter Net.Tcp 侦听器适配器
  • Net.Tcp Port Sharing Service Net.Tcp 端口共享服务

I found this solution by going through all dependencies and child dependencies of the World Wide Web Publishing Service and making sure that each service was enabled and started.我通过检查万维网发布服务的所有依赖项和子依赖项并确保每个服务都已启用和启动来找到此解决方案。

To verify all services for yourself, do the following:要亲自验证所有服务,请执行以下操作:

  1. Open up Services (just search for it from the start menu in Windows 10)打开服务(只需从 Windows 10 的开始菜单中搜索)
  2. Find the World Wide Web Publishing Service查找万维网发布服务
  3. Right click on the service and then click " Properties "右键单击该服务,然后单击“属性
  4. Click on the Dependencies tab单击依赖项选项卡
  5. Go through each system component in the two boxes and verify that each service is started (in Services).浏览两个框中的每个系统组件并验证每个服务是否已启动(在服务中)。
  6. Repeat steps 3-5 for each of the dependencies' dependencies until you run out of child dependencies对每个依赖项的依赖项重复步骤 3-5,直到用完子依赖项

Service Properties - Dependencies Tab服务属性 - 依赖项选项卡

对我来说,解决方案很简单,驱动器 C 上没有剩余空间,一旦删除了一些旧文件,我就能够执行 IISReset 并且所有服务都成功启动。

This is probably a rarer case, but...这可能是一种罕见的情况,但是......

If you are using a custom AppPool Identity configuration be sure to check the AppPool is running.如果您使用自定义 AppPool Identity 配置,请务必检查 AppPool 是否正在运行。 It may be turned off because credentials are invalid (usually due to an expired password).它可能被关闭,因为凭据无效(通常是由于密码过期)。 Update your credentials and start the AppPool.更新您的凭据并启动 AppPool。

I know this post is old but I was getting this error.我知道这篇文章很旧,但我收到了这个错误。 It turns out World Wide Web Publishing Service was disabled.事实证明万维网发布服务已被禁用。

  1. Click Start, type Services in the Search box, and then click Services.单击开始,在搜索框中键入服务,然后单击服务。
  2. Scroll until you find the World Wide Web Publishing Service that is stopped or disabled.滚动直到找到已停止或禁用的万维网发布服务。
  3. right-click the service, and then click Properties.右键单击该服务,然后单击“属性”。
  4. Click the Startup type list, and then click Automatic.单击启动类型列表,然后单击自动。
  5. Click Apply, and then click OK.单击应用,然后单击确定。

I managed to solve after:我设法解决后:

  1. Ctrl+Shift+Esc = To open Task Manager Ctrl+Shift+Esc = 打开任务管理器
  2. In the "Processes" tab locate the " IIS Worker Process " and finish it!在“进程”选项卡中找到“ IIS 工作进程”并完成它!
  3. Run on cmd as an administrator.以管理员身份在 cmd 上运行。 Type iisreset .键入iisreset

Ready!准备好! Be happy!要开心!

I am able to resolve this by simply executing the below command on Powershell to kill/stop service and restart the IIS server我可以通过简单地在 Powershell 上执行以下命令来终止/停止服务并重新启动 IIS 服务器来解决此问题

taskkill /F /FI "SERVICES eq w3svc" taskkill /F /FI "SERVICES eq w3svc"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM