首页 > 解决方案 > 如何在 Azure 下的 Windows Server 2012 R2 下向 IIS 添加 Tracing

问题描述

我们目前正在努力将跟踪添加到 Azure 下的 Windows Server 2012 R2 上的角色。我们一直在研究Avanti对程序的描述,但始终遇到大约 2/3 的失败。我们进入显示“Web 服务器 (IIS) > Web 服务器 > 健康和诊断 > 跟踪”的“功能安装”的屏幕,仅显示以下文本:

在指定服务器上添加或删除功能的请求失败。一个或多个角色、角色服务或功能的安装失败。错误:0x800f0922

下面提供了一个稍微编辑的版本,DeploymentConfigTemplate.xml以防它有意义:

<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
    <Obj RefId="0">
        <TN RefId="0">
            <T>System.Collections.ObjectModel.Collection`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
            <T>System.Object</T>
        </TN>
        <LST>
            <Obj RefId="1">
                <TN RefId="1">
                    <T>Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/ServerManager/ServerComponent_Web_Http_Tracing</T>
                    <T>Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/ServerManager/MSFT_ServerManagerServerComponentDescriptor</T>
                    <T>Microsoft.Management.Infrastructure.CimInstance#ServerComponent_Web_Http_Tracing</T>
                    <T>Microsoft.Management.Infrastructure.CimInstance#MSFT_ServerManagerServerComponentDescriptor</T>
                    <T>Microsoft.Management.Infrastructure.CimInstance</T>
                    <T>System.Object</T>
                </TN>
                <ToString>ServerComponent_Web_Http_Tracing</ToString>
                <Props>
                    <S N="PSComputerName">SOME-COMPUTER-NAME</S>
                </Props>
                <MS>
                    <I32 N="NumericId">159</I32>
                    <Obj N="__ClassMetadata" RefId="2">
                        <TN RefId="2">
                            <T>System.Collections.ArrayList</T>
                            <T>System.Object</T>
                        </TN>
                        <LST>
                            <Obj RefId="3">
                                <MS>
                                    <S N="ClassName">MSFT_ServerManagerServerComponentDescriptor</S>
                                    <S N="Namespace">ROOT/Microsoft/Windows/ServerManager</S>
                                    <S N="ServerName">SOME-COMPUTER-NAME</S>
                                    <I32 N="Hash">1884695400</I32>
                                    <S N="MiXml">&lt;CLASS NAME="MSFT_ServerManagerServerComponentDescriptor"&gt;&lt;QUALIFIER NAME="dynamic" TYPE="boolean"&gt;&lt;VALUE&gt;true&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;QUALIFIER NAME="locale" TYPE="sint32" TOSUBCLASS="false"&gt;&lt;VALUE&gt;1033&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;QUALIFIER NAME="provider" TYPE="string"&gt;&lt;VALUE&gt;deploymentprovider&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;/CLASS&gt;</S>
                                </MS>
                            </Obj>
                            <Obj RefId="4">
                                <MS>
                                    <S N="ClassName">ServerComponent_Web_Http_Tracing</S>
                                    <S N="Namespace">ROOT/Microsoft/Windows/ServerManager</S>
                                    <S N="ServerName">SOME-COMPUTER-NAME</S>
                                    <I32 N="Hash">1983160024</I32>
                                    <S N="MiXml">&lt;CLASS NAME="ServerComponent_Web_Http_Tracing" SUPERCLASS="MSFT_ServerManagerServerComponentDescriptor"&gt;&lt;QUALIFIER NAME="dynamic" TYPE="boolean"&gt;&lt;VALUE&gt;true&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;QUALIFIER NAME="provider" TYPE="string"&gt;&lt;VALUE&gt;deploymentprovider&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;QUALIFIER NAME="ClassVersion" TYPE="string"&gt;&lt;VALUE&gt;0.0.0&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;QUALIFIER NAME="DisplayName" TYPE="string" TRANSLATABLE="true"&gt;&lt;VALUE&gt;Web-Http-Tracing&lt;/VALUE&gt;&lt;/QUALIFIER&gt;&lt;/CLASS&gt;</S>
                                </MS>
                            </Obj>
                        </LST>
                    </Obj>
                </MS>
            </Obj>
        </LST>
    </Obj>
</Objs>

我们正在尽可能多地解决 0x800f0922 Windows 10 错误的 7 种适用方法。欢迎提出其他建议。

之后

C:\bin>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection found corrupt files but was unable to fix some
of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
supported in offline servicing scenarios.

CBS.log 文件为 5.3MB。接下来可能会尝试DISM。

C:\bin>DISM.exe /Online /Cleanup-image /Scanhealth

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

C:\bin> DISM.exe /Online /Cleanup-image /Restorehealth

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]
The restore operation completed successfully. The component store corruption was repaired.
The operation completed successfully.

后来还是

不,仍然没有安装。任何人的想法?

标签: azureiisrolestrace

解决方案


1)确保您的机器中有足够的空间。

2) 删除 Windows Temp 文件夹(通常为 C:\Windows\Temp)的内容,然后再次尝试安装该功能。

3)关闭私人和公共网络的防火墙。

4) 确保您安装了最新版本的 NET Framework。

5)请在Server 2012R2上运行Windows Update疑难解答,检查是否可以解决问题

6)尝试重新安装Windows Process Activation Service。

7)确保在安装 IIS 功能时禁用共享配置。

完成所有操作后,重新启动机器并再次尝试安装该功能。


推荐阅读