简体   繁体   English

Windows 10 上的 iisreset 错误

[英]iisreset error on windows 10

I have recently upgraded my desktop from Windows 7 to Windows 10我最近将我的桌面从 Windows 7 升级到了 Windows 10

However when I run iisrest from an administrator console, I am getting the following error:但是,当我从管理员控制台运行 iisrest 时,出现以下错误:

Restart attempt failed.重新启动尝试失败。 The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start. IIS 管理服务或万维网发布服务或依赖于它们的服务无法启动。 The service, or dependent services, may had an error during its startup or may be disabled.该服务或相关服务可能在其启动期间出错或可能被禁用。

I initially checked my services, and there is no longer the IIS Admin service.我最初检查了我的服务,并且不再有 IIS Admin 服务。 I then checked the windows features, and as per nearly every article on the web that discusses installing IIS, I have selected Internet Information Services.然后,我检查了 Windows 功能,并且根据网络上几乎所有讨论安装 IIS 的文章,我都选择了 Internet 信息服务。

I have checked and the web service has restarted, Is this a new feature of Windows10 that the IIS Admin service is no longer required.我已经检查并重新启动了Web服务,这是不再需要IIS Admin服务的Windows10的新功能。 Is there an additional step that I need to do that will install the service我是否需要执行额外的步骤来安装服务

Or is this now an issue with IISReset and I can ignore the error.或者这现在是 IISReset 的问题,我可以忽略该错误。

I have also tested this on a freshly installed Windows 10 box, and running IISReset gives the same error, and once again have verified via Windows features that IIS is installed我还在新安装的 Windows 10 机器上对此进行了测试,运行 IISReset 会出现相同的错误,并再次通过 Windows 功能验证安装了 IIS

I can access website locally with no problems either我可以在本地访问网站也没有问题

After @Zam recommended looking in the event log, and poking around a lot, the issue was that services "Net.Tcp Port Sharing Service", "Net.Tcp Listener Adapter" on my machine are disabled by default.在@Zam 建议查看事件日志并仔细查看之后,问题是我机器上的“Net.Tcp 端口共享服务”、“Net.Tcp 侦听器适配器”服务默认处于禁用状态。

After starting these services, and changing the Startup Type to "Automatic (Delayed Start)", iisreset no longer gives me error启动这些服务并将启动类型更改为“自动(延迟启动)”后,iisreset 不再给我错误

After executing iisreset /start and facing the described failure, just execute iisreset /status to see the list of services to which IIS is dependent and which ones are stile stopped.在执行iisreset /start并面对所描述的失败后,只需执行iisreset /status即可查看 IIS 所依赖的服务列表以及哪些服务已停止。 In Windows 10 this stopped service is usually " Net.Msmq Listener Adapter (NetMsmqActivator) " and if you try to start it, you will encounter the following error:在 Windows 10 中,这个停止的服务通常是“ Net.Msmq Listener Adapter (NetMsmqActivator) ”,如果你尝试启动它,你会遇到以下错误:

在此处输入图片说明

Because it is dependent on a service called " Microsoft Messaging Queue (MSMQ) " which is not installed by default in Windows 10. Just follow these steps to install it:因为它依赖于名为“ Microsoft Messaging Queue (MSMQ) ”的服务,该服务在 Windows 10 中默认未安装。只需按照以下步骤进行安装:

  1. in the Run command window type appwiz.cpl to open " Programs and Features " item from the Control Panel在运行命令窗口中输入appwiz.cpl以从控制面板打开“程序和功能”项
  2. in the "Programs and Features" select " Turn Windows features on or off " in the top left corner在“程序和功能”中选择左上角的“打开或关闭 Windows 功能
  3. in the " Windows Features " scroll down to see " Microsoft Messaging Queue (MSMQ) Server " and select it (it doesn't need to be selected completely)在“ Windows 功能”中向下滚动以查看“ Microsoft Messaging Queue (MSMQ) Server ”并选择它(不需要完全选择)
  4. restart the computer重新启动计算机

Now, if you execute iisreset /start it will be executed with no problem.现在,如果您执行iisreset /start它将毫无问题地执行。

For this problem, start the following services in windows:针对这个问题,在windows下启动如下服务:

  1. Net.Tcp Listener Adapter Net.Tcp 侦听器适配器
  2. Net.Pipe Listener Adapter Net.Pipe 侦听器适配器
  3. Net.Msmq Listener Adapter Net.Msmq 侦听器适配器
  4. Net.Tcp Port Sharing Service Net.Tcp 端口共享服务
  5. Messaging Queuing消息队列
  6. W3SVC Service W3SVC 服务

It should be IIS Admin Service.它应该是 IIS 管理服务。 I had the same problem and was able to resolve once IIS Admin Service is started and set to Automatic我遇到了同样的问题并且能够在 IIS Admin Service 启动并设置为 Automatic 后解决

If you have Netskope Client running, it might be closing the connection and causing the error.如果您正在运行 Netskope 客户端,它可能会关闭连接并导致错误。 If possible, disable Netskope Client and the error should be resolved.如果可能,禁用 Netskope 客户端,错误应该得到解决。

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

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