如何在Azure下的Windows Server 2012 R2下向IIS添加跟踪 [英] How to add Tracing to IIS under Windows Server 2012 R2 under Azure

查看:80
本文介绍了如何在Azure下的Windows Server 2012 R2下向IIS添加跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前正在努力将跟踪添加到Azure下Windows Server 2012 R2上的角色.我们一直在通过 Avanti 该过程的描述,但始终会遇到约2/3的失败.我们进入显示功能安装"的屏幕. "Web服务器(IIS)"网络服务器健康与诊断>追踪"只显示以下文字:

We are currently struggling to add Tracing to the roles on a Windows Server 2012 R2 under Azure. We have been working through Avanti's description of the procedure but consistently encounter a failure about 2/3 of the way through. We get to the screen that says "Feature installation" of "Web Server (IIS) > Web Server > Health and Diagnostics > Tracing" only to have the following text appear:

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

The request to add or remove features on the specified server failed. Installation of one or more roles, role services, or features failed. Error: 0x800f0922

为方便起见,下面提供了略作删节的DeploymentConfigTemplate.xml版本:

A slightly redacted version of DeploymentConfigTemplate.xml is provided below in case it's meaningful:

<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>

我们正在研究许多 7种方法来解决0x800f0922 Windows 10错误(如适用).欢迎其他建议.

We are working through as many of the 7 Ways to 0x800f0922 Windows 10 Error as are applicable. Other suggestions welcome.

LATER

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.

The CBS.log file is 5.3MB. Might try DISM next.

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.

最新动态

不.仍未安装.有人吗?

No. Still not installing. Ideas anyone?

推荐答案

为了能够致电支持部门,我们花了几天的时间生成日志并将其发送给Microsoft支持工程师,从而产生了以下指示信息:

Being able to call in Support, we spent a few days generating and sending logs to a Microsoft support engineer, resulting in the following instructions:

... please create the folder C:\inetpub\logs\FailedReqLogFiles on your problematic machine. 
Then please right click this folder, choose Properties, then under Security tab, 
assign the following permissions:

System - Full Control
Administrators - Full Control 
IIS_IUSRS - List folder/read data, Create files/ write data, create folders/ append data, write attributes, write extend attributes, delete subfolders and files and delete.

这足以启用安装跟踪角色.在此过程中,一个特别困难和令人不安的500期问题消失了.因此,毕竟经过了反复的尝试,我们根本不必使用FRT模块.

This was sufficient to enable installation of the Tracing role. In the process, one particularly difficult and troubling 500 issue disappeared. So after all the hoo-hah and to-ing and fro-ing we have not had to use the FRT module after all.

这篇关于如何在Azure下的Windows Server 2012 R2下向IIS添加跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆