![](/img/trans.png)
[英]Windows Server 2012 R2 Remote Desktop License activation under Microsoft Azure subscription
[英]How to add Tracing to IIS under Windows Server 2012 R2 under Azure
我們目前正在努力將跟蹤添加到 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進程激活服務。
7)確保在安裝 IIS 功能時禁用共享配置。
完成所有操作后,重新啟動機器並再次嘗試安裝該功能。
為了能夠致電支持,我們花了幾天時間生成日志並將其發送給 Microsoft 支持工程師,結果如下:
... 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 模塊。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.