如何修复无法检索用户 IIS 的组信息 APPPOOL\DefaultAppPool

How to fix Can't retrieve group information for user IIS APPPOOL\DefaultAppPool

在Windows10 Visual Studio中使用社区版。 ASP.NET MVC 4 应用程序 运行 使用由 Visual Studio 安装的 IIS Express 在调试模式下从它获得。

升级到 Windows 10 周年纪念版失败并出现错误

0xc1900101 - 0x30018 安装在 FIRST_BOOT 阶段失败,在 SYSPREP 操作期间出现错误。

Windows setuperr.log 文件如下。 日志中的最后一行包含

Can't retrieve group information for user IIS APPPOOL\DefaultAppPool.

根据https://social.technet.microsoft.com/Forums/windows/en-US/b8d1f70b-c631-4de9-8dd2-844ef8d0d7c7/how-to-fix-0xc19001010x30018-error-upgrading-to-anniversity-edition?forum=win10itprosetup

是升级失败的原因。 如何解决这个问题?可以删除或修复 Visual Studio IIS APPPOOL\DefaultAppPool 帐户,以便 Visual Studio 继续工作。

我没有在 Visual Studio 或其他地方找到任何 GUI。

2016-09-27 00:47:32, Error      [0x0803b6] MIG    Can't retrieve group information for user IIS APPPOOL\DefaultAppPool. NetUserGetLocalGroups failed 0x000008AD
2016-09-27 00:47:36, Error                 SP     pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2016-09-27 00:47:45, Error      [0x0803b6] MIG    Can't retrieve group information for user IIS APPPOOL\DefaultAppPool. NetUserGetLocalGroups failed 0x000008AD
2016-09-27 00:47:48, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: "id" attribute is mandatory. void __cdecl Mig::CMXEMigrationXml::LoadSupportedComponent(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2016-09-27 00:48:04, Error                 CSI    00000001 (F) 80220008 [Error,Facility=FACILITY_STATE_MANAGEMENT,Code=8] #89591# from CWcmScalarInstanceCore::GetCurrentValue(options = 393216 (0x00060000), status = [6]"(null)", value = { type: 40972 (0x0000a00c), bytes ( 12 (0x0000000c) ): 65006e002d00550053000000 })
[gle=0x80004005]
2016-09-27 00:48:06, Error                 CSI    00000002 (F) 80220008 [Error,Facility=FACILITY_STATE_MANAGEMENT,Code=8] #161004# from CWcmScalarInstanceCore::GetCurrentValue(options = 393216 (0x00060000), status = [6]"(null)", value = { type: 40972 (0x0000a00c), bytes ( 12 (0x0000000c) ): 65006e002d00550053000000 })
[gle=0x80004005]
2016-09-27 00:48:29, Error      [0x080389] MIG    Failure while calling IDiscovery->Gather for Plugin={ServerPath="Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll", CLSID={AE27C1A6-25F2-45FD-9A28-081B81F29E0A}, ThreadingModel=Apartment}. Error: 0x80010105
2016-09-27 00:48:29, Error                 SP     Error READ, 0x80010105 while gathering/applying object: pre-scan, Action,CMXEPlugin,C:$WINDOWS.~BT\Sources\ReplacementManifests,Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll,{AE27C1A6-25F2-45FD-9A28-081B81F29E0A},Apartment. Will return 2[gle=0x000000cb]
2016-09-27 00:48:33, Error                 CSI    00000003 (F) 80220008 [Error,Facility=FACILITY_STATE_MANAGEMENT,Code=8] #247735# from CWcmScalarInstanceCore::GetCurrentValue(options = 393216 (0x00060000), status = [6]"(null)", value = { type: 40972 (0x0000a00c), bytes ( 12 (0x0000000c) ): 65006e002d00550053000000 })
[gle=0x80004005]
2016-09-27 00:48:41, Error      [0x0803b6] MIG    Can't retrieve group information for user IIS APPPOOL\DefaultAppPool. NetUserGetLocalGroups failed 0x000008AD
2016-09-27 00:48:46, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{C939EC0F-2F56-4CE8-AF56-2336596A5FA7} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *,class UnBCL::String *)
2016-09-27 00:51:00, Error      [0x0808fe] MIG    Plugin {526D451C-721A-4b97-AD34-DCE5D8CD22C5}: [shmig] Failed to get preferred homegroup with hr=0x80070490
2016-09-27 00:52:03, Error                        CSetupAutomation::Resurrect: File not found: C:$WINDOWS.~BT\Sources\Panther\automation.dat[gle=0x00000002]
2016-09-27 00:52:03, Error                 SP     CSetupPlatform::ResurrectAutomation: Failed to resurrect automation: 0x80070002[gle=0x00000002]
2016-09-27 00:52:03, Error      [0x0803b6] MIG    Can't retrieve group information for user IIS APPPOOL\DefaultAppPool. NetUserGetLocalGroups failed 0x000008AD

更新

删除 IIS 用户配置文件更新后仍然失败并出现同样的错误。现在 seytuperr.log 不包含与用户相关的错误。如何查找更新失败的原因?

2016-09-28 19:21:32, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:04, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:04, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:04, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:04, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:04, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:32:20, Error                 MOUPG  CDlpResponseImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IDlpResponse> > > >::CheckUserCancelled(1586): Result = 0x800704D3
2016-09-28 19:32:20, Error                 MOUPG  CDlpResponseImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IDlpResponse> > > >::Execute(1751): Result = 0x800704D3
2016-09-28 19:32:20, Error                 MOUPG  CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IMoSetupDlpAction> > > >::ExecuteResponse(1184): Result = 0x800704D3
2016-09-28 19:32:20, Error                 MOUPG  CDlpActionSummary::ExecuteRoutine(202): Result = 0x800704D3
2016-09-28 19:32:20, Error                 MOUPG  CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IMoSetupDlpAction> > > >::Execute(441): Result = 0x800704D3
2016-09-28 19:34:05, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:34:05, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:34:05, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:34:05, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:34:05, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:37:33, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:37:33, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:37:33, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:43:42, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:43:42, Error                        [SetupHost.exe] IOCTL_STORAGE_QUERY_PROPERTY failed: 0x1
2016-09-28 19:43:49, Error                 SP     pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2016-09-28 19:44:01, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: "id" attribute is mandatory. void __cdecl Mig::CMXEMigrationXml::LoadSupportedComponent(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2016-09-28 19:44:12, Error                 CSI    00000001 (F) 80220008 [Error,Facility=FACILITY_STATE_MANAGEMENT,Code=8] #18323# from CWcmScalarInstanceCore::GetCurrentValue(options = 393216 (0x00060000), status = [6]"(null)", value = { type: 40972 (0x0000a00c), bytes ( 12 (0x0000000c) ): 650074002d00450045000000 })
[gle=0x80004005]
2016-09-28 19:44:42, Error      [0x080389] MIG    Failure while calling IDiscovery->Gather for Plugin={ServerPath="Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll", CLSID={AE27C1A6-25F2-45FD-9A28-081B81F29E0A}, ThreadingModel=Apartment}. Error: 0x80010105
2016-09-28 19:44:43, Error                 SP     Error READ, 0x80010105 while gathering/applying object: pre-scan, Action,CMXEPlugin,C:$WINDOWS.~BT\Sources\ReplacementManifests,Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll,{AE27C1A6-25F2-45FD-9A28-081B81F29E0A},Apartment. Will return 2[gle=0x000000cb]
2016-09-28 19:44:47, Error                 CSI    00000002 (F) 80220008 [Error,Facility=FACILITY_STATE_MANAGEMENT,Code=8] #105054# from CWcmScalarInstanceCore::GetCurrentValue(options = 393216 (0x00060000), status = [6]"(null)", value = { type: 40972 (0x0000a00c), bytes ( 12 (0x0000000c) ): 650074002d00450045000000 })
[gle=0x80004005]
2016-09-28 19:45:00, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{C939EC0F-2F56-4CE8-AF56-2336596A5FA7} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *,class UnBCL::String *)
2016-09-28 19:47:12, Error      [0x0808fe] MIG    Plugin {526D451C-721A-4b97-AD34-DCE5D8CD22C5}: [shmig] Failed to get preferred homegroup with hr=0x80070490
2016-09-28 19:48:29, Error                        CSetupAutomation::Resurrect: File not found: C:$WINDOWS.~BT\Sources\Panther\automation.dat[gle=0x00000002]
2016-09-28 19:48:29, Error                 SP     CSetupPlatform::ResurrectAutomation: Failed to resurrect automation: 0x80070002[gle=0x00000002]

我会说这是 并非每个 Windows 错误都是问题,

IIS APPPOOL\DefaultAppPool是一个虚拟用户,在系统中并不真正存在,以这个用户名作为参数调用Win32 API函数NetUserGetLocalGroups总是失败,因为它找不到那个用户,因为它是一个虚拟的。 因此,虽然 Windows 更新过程将此报告为错误,但我很确定这不是您的更新不起作用的问题。再次查看日志以找到罪魁祸首。

顺便说一句,据我所知,IIS APPPOOL\* 用户没有在 Visual Studio 附带的 IIS Express 中使用。它们仅由适当的 IIS 使用,在某些时候您必须在系统上安装该 IIS。我认为删除 IIS 中的应用程序池 DefaultAppPool 不会从系统中删除对该虚拟用户的所有引用。