简体   繁体   English

无法安装 Windows 功能 IIS

[英]Could not install windows feature IIS

I tried to reinstall iis on my windows 10 system through Control Panel\\Programs and Features\\ Turn Windows features on or off but after uninstalling it there is a problem with installing iis again.我尝试通过控制面板\\程序和功能\\打开或关闭 Windows 功能在我的 Windows 10 系统上重新安装 iis,但在卸载它后再次安装 iis 出现问题。

Here are screenshots with all errors I'm facing at the moment:以下是我目前面临的所有错误的屏幕截图: Windows 功能安装消息

IIS主屏幕

尝试打开“站点”选项卡时出现 IIS 错误消息

尝试打开应用程序池选项卡时出现 IIS 错误消息

In folder Windows/System32/inetsrv/config I recreated file named ApplicationHost.config在文件夹 Windows/System32/inetsrv/config 我重新创建了名为 ApplicationHost.config 的文件

here is the configuration:这是配置:

<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
    <system.applicationHost>
        <applicationPools>
            <add name="DefaultAppPool" />
            <applicationPoolDefaults>
                <processModel identityType="NetworkService" />
            </applicationPoolDefaults>
        </applicationPools>
        <customMetadata />
    <listenerAdapters>
        <add name="http" />
    </listenerAdapters>
    <log>
        <centralBinaryLogFile enabled="true" directory="%SystemDrive%\inetpub\logs\LogFiles" />
        <centralW3CLogFile enabled="true" directory="%SystemDrive%\inetpub\logs\LogFiles" />
    </log>
    <sites>
        <site name="Default Web Site" id="1">
            <application path="/">
                <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:80:" />
            </bindings>
        </site>
        <siteDefaults>
            <logFile logFormat="W3C" directory="%SystemDrive%\inetpub\logs\LogFiles" />
            <traceFailedRequestsLogging directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles" />
        </siteDefaults>
        <applicationDefaults applicationPool="DefaultAppPool" />
        <virtualDirectoryDefaults allowSubDirConfig="true" />
    </sites>
    <webLimits />
</system.applicationHost>
</configuration>

Does anyone had something like that before me and was able to run IIS again without reinstalling entire system from scratch?有没有人在我之前遇到过这样的事情并且能够再次运行 IIS 而无需从头开始重新安装整个系统?

If any information needed please do not hasitate to ask in comment section.如果需要任何信息,请不要在评论部分提问。

Thanks in advance :)提前致谢 :)

Thanks to @LexLi and links provided by him i was able to find out what caused the issue.感谢@LexLi和他提供的链接,我能够找出导致问题的原因。

Main Link 主链接

Second one 第二个

And last which point the way to uninstall Windows Process Activation Service in Windows 10 pro not server one 最后是在 Windows 10 专业版而不是服务器一中卸载 Windows 进程激活服务的方法

Just to be sure I uninstalled: Internet Information Services Hostable Web Core只是为了确保我卸载了:Internet Information Services Hostable Web Core

I hope this answer would help someone in future.我希望这个答案将来会对某人有所帮助。

Thanks again @LexLi for assistant.再次感谢@LexLi的助手。 Cheers!干杯!

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

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