azure - 如何在 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"><CLASS NAME="MSFT_ServerManagerServerComponentDescriptor"><QUALIFIER NAME="dynamic" TYPE="boolean"><VALUE>true</VALUE></QUALIFIER><QUALIFIER NAME="locale" TYPE="sint32" TOSUBCLASS="false"><VALUE>1033</VALUE></QUALIFIER><QUALIFIER NAME="provider" TYPE="string"><VALUE>deploymentprovider</VALUE></QUALIFIER></CLASS></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"><CLASS NAME="ServerComponent_Web_Http_Tracing" SUPERCLASS="MSFT_ServerManagerServerComponentDescriptor"><QUALIFIER NAME="dynamic" TYPE="boolean"><VALUE>true</VALUE></QUALIFIER><QUALIFIER NAME="provider" TYPE="string"><VALUE>deploymentprovider</VALUE></QUALIFIER><QUALIFIER NAME="ClassVersion" TYPE="string"><VALUE>0.0.0</VALUE></QUALIFIER><QUALIFIER NAME="DisplayName" TYPE="string" TRANSLATABLE="true"><VALUE>Web-Http-Tracing</VALUE></QUALIFIER></CLASS></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.
后来还是
不,仍然没有安装。任何人的想法?
解决方案
1)确保您的机器中有足够的空间。
2) 删除 Windows Temp 文件夹(通常为 C:\Windows\Temp)的内容,然后再次尝试安装该功能。
3)关闭私人和公共网络的防火墙。
4) 确保您安装了最新版本的 NET Framework。
5)请在Server 2012R2上运行Windows Update疑难解答,检查是否可以解决问题
6)尝试重新安装Windows Process Activation Service。
7)确保在安装 IIS 功能时禁用共享配置。
完成所有操作后,重新启动机器并再次尝试安装该功能。
推荐阅读
- google-sheets - 增加文本值的公式
- javascript - 从任何浏览器中唯一识别计算机的挑战
- regex - Regex match hyphenated word with hyphen-less query
- linux - 如何正确设置软硬限制?
- reactjs - 如何在 Material-UI V5 (@mui/lab) datepicker 组件上设置一个空标签?
- java - 这些参数应该是常量还是常规整数?
- c++ - wxWidgets: wxWebView::CanCopy - 防止用户复制需要示例
- c - 如何在 C 中声明和访问指向成员结构成员的指针?
- vue.js - 具有多个输入/输出文件的多页应用程序的 Vue/Vite 配置
- google-sheets-api - 有没有办法使用 google sheet api 添加不受保护的范围?