.NET Core Runtime安装失败0x80070005Error报错服务器原因

.NET Core Runtime安装失败0x80070005Error报错服务器原因

完整错误日志:

[0CD4:10B0][2019-07-17T14:23:34]i001: Burn v3.11.1.2318, Windows v10.0 (Build 14393: Service Pack 0), path: C:\Windows\Temp\{FFC3F331-A22E-4BE3-89B9-79A7E7FF3034}\.cr\dotnet-hosting-2.2.6-win.exe
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'BundleNameShort' to value 'Microsoft .NET Core 2.2.6'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'BundleNameSub' to value 'Windows Server Hosting'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_ANCM' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_FTS' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_LTS' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_SHAREDFX' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_RUNTIME' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_X86' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing numeric variable 'OPT_NO_SHARED_CONFIG_CHECK' to value '0'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'InstallResetIISState' to value 'disable'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'InstallNoIISState' to value 'disable'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'ModifyResetIISState' to value 'disable'
[0CD4:10B0][2019-07-17T14:23:34]i000: Initializing string variable 'ModifyNoIISState' to value 'disable'
[0CD4:10B0][2019-07-17T14:23:34]i009: Command Line: '-burn.clean.room=C:\Users\Administrator\AppData\Roaming\IDM\DwnlData\Administrator\dotnet-hosting-2.2.6-win_19\dotnet-hosting-2.2.6-win.exe -burn.filehandle.attached=480 -burn.filehandle.self=496'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Administrator\AppData\Roaming\IDM\DwnlData\Administrator\dotnet-hosting-2.2.6-win_19\dotnet-hosting-2.2.6-win.exe'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Administrator\AppData\Roaming\IDM\DwnlData\Administrator\dotnet-hosting-2.2.6-win_19\'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334.log'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'WixBundleName' to value 'Microsoft .NET Core 2.2.6 - Windows Server Hosting'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[0CD4:12E0][2019-07-17T14:23:34]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[0CD4:12E0][2019-07-17T14:23:34]i000: Setting version variable 'WixBundleFileVersion' to value '2.2.6.0'
[0CD4:10B0][2019-07-17T14:23:34]i100: Detect begin, 8 packages
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'IISCoreWebEngineInstalled_x86' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'IISW3SVCInstalled_x86' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'IISCoreWebEngineInstalled_x64' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'IISW3SVCInstalled_x64' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition 'NOT (((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1)))' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition '((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1))' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'InstallResetIISState' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition 'NOT (((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1)))' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition '((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1))' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:34]i000: Setting string variable 'ModifyResetIISState' to value '1'
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition 'DotNetRedistLtsProductVersion_x64 = v16.152.27818' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:34]i052: Condition 'DotNetRedistLtsProductVersion_x86 = v16.152.27818' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreModule_x86, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreModule_x64, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreModuleV2_x86, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreModuleV2_x64, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: DotNetRedistLts_x64, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: DotNetRedistLts_x86, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreSharedFramework_x86, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i101: Detected package: AspNetCoreSharedFramework_x64, state: Absent, cached: None
[0CD4:10B0][2019-07-17T14:23:34]i199: Detect complete, result: 0x0
[0CD4:12E0][2019-07-17T14:23:34]i000: Disable control InstallNoIIS
[0CD4:12E0][2019-07-17T14:23:36]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[0CD4:10B0][2019-07-17T14:23:36]i200: Plan begin, 8 packages, action: Install
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM)' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreModule_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_000_AspNetCoreModule_x64_rollback.log'
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_AspNetCoreModule_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_000_AspNetCoreModule_x64.log'
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM)' evaluates to false.
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreModuleV2_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_001_AspNetCoreModuleV2_x64_rollback.log'
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_AspNetCoreModuleV2_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_001_AspNetCoreModuleV2_x64.log'
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'VersionNT64 AND (NOT OPT_NO_RUNTIME)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_002_DotNetRedistLts_x64.log'
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition '(NOT OPT_NO_RUNTIME) AND (NOT OPT_NO_X86)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_003_DotNetRedistLts_x86.log'
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition '(NOT OPT_NO_SHAREDFX) AND (NOT OPT_NO_X86)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreSharedFramework_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_004_AspNetCoreSharedFramework_x86_rollback.log'
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_AspNetCoreSharedFramework_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_004_AspNetCoreSharedFramework_x86.log'
[0CD4:10B0][2019-07-17T14:23:36]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX)' evaluates to true.
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_005_AspNetCoreSharedFramework_x64_rollback.log'
[0CD4:10B0][2019-07-17T14:23:36]i000: Setting string variable 'WixBundleLog_AspNetCoreSharedFramework_x64' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20190717142334_005_AspNetCoreSharedFramework_x64.log'
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreModule_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreModule_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreSharedFramework_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0CD4:10B0][2019-07-17T14:23:36]i201: Planned package: AspNetCoreSharedFramework_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0CD4:10B0][2019-07-17T14:23:36]i299: Plan complete, result: 0x0
[0CD4:10B0][2019-07-17T14:23:36]i300: Apply begin
[0CD4:10B0][2019-07-17T14:23:36]i010: Launching elevated engine process.
[0CD4:10B0][2019-07-17T14:23:36]i011: Launched elevated engine process.
[0CD4:10B0][2019-07-17T14:23:37]i012: Connected to elevated engine.
[0FE4:0F4C][2019-07-17T14:23:37]i358: Pausing automatic updates.
[0FE4:0F4C][2019-07-17T14:23:37]i359: Paused automatic updates.
[0FE4:0F4C][2019-07-17T14:23:37]i360: Creating a system restore point.
[0FE4:0F4C][2019-07-17T14:23:37]i362: System restore disabled, system restore point not created.
[0FE4:0F4C][2019-07-17T14:23:37]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c4ec9724-2287-4ff1-b017-9256f115d8ab}, options: 0x7, disable resume: No
[0FE4:0F4C][2019-07-17T14:23:37]i000: Caching bundle from: 'C:\Windows\Temp\{137B3B42-2858-410D-801A-3090104ABC0C}\.be\dotnet-hosting-2.2.6-win.exe' to: 'C:\ProgramData\Package Cache\{c4ec9724-2287-4ff1-b017-9256f115d8ab}\dotnet-hosting-2.2.6-win.exe'
[0FE4:0F4C][2019-07-17T14:23:37]i320: Registering bundle dependency provider: 7bdcd204-0b40-34da-96a9-6ec8015271a7, version: 2.2.6.0
[0FE4:0F4C][2019-07-17T14:23:37]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c4ec9724-2287-4ff1-b017-9256f115d8ab}, resume: Active, restart initiated: No, disable resume: No
[0FE4:0F4C][2019-07-17T14:23:37]e000: Error 0x80070005: Failed to write run key value.
[0FE4:0F4C][2019-07-17T14:23:37]e000: Error 0x80070005: Failed to update resume mode.
[0FE4:0F4C][2019-07-17T14:23:37]e000: Error 0x80070005: Failed to begin registration session.
[0CD4:10B0][2019-07-17T14:23:37]e000: Error 0x80070005: Failed to begin registration session in per-machine process.
[0CD4:10B0][2019-07-17T14:23:37]e000: Error 0x80070005: Failed to register bundle.
[0CD4:10B0][2019-07-17T14:23:37]i399: Apply complete, result: 0x80070005, restart: None, ba requested restart: No

解决思路:

1、尝试百度,找不到相关的词,转战google,发现一些issue,基于微软的解决方案是

From the error message “0x80070002” and “0x80070005”, both of them are related with access. Please try right clicking on the installer and choosing the "run as admin" option again to reinstall.

If the issue still insists, please follow the steps in the below to check.

>Go to C: folder

>Open Organize>Folder and search options

>Then go to View tab and turn on Show hidden files, folders, or drives

>Then go to ProgramData and right click PackageCache and open Properties

Go to Security tab and edit Permissions to allow Full control

简单来说就是C:\ProgramData\Package Cache\ 文件没有足够的权限导致,尝试,右键,安全,对Administrators设置完全控制权限即可。

但是我设置以后并没有解决,所以继续挖掘

2、stack overflow社区看到类似问题,解决方法:

Turn off IE ESC Temporarily:

This solution worked for me as well. Here's how to disable IE Enhanced Security Configuration:

  1. Open Server Manager.
  2. Click "Local Server" at the left side.
  3. On the right side of Server Manager if you see IE Enhanced Security Configuration is "On", click "On".
  4. When a new windows pops up, turn IE ESC off for both Administrator and Users.
  5. Re-install .NET Core SDK.
  6. Turn IE ESC on after installation.

简单说就是关闭IE安全增强,某些服务器会因为这个原因,导致安装包无法安装,方法如图:

.NET Core Runtime安装失败0x80070005Error报错服务器原因 .NET Core Runtime安装失败0x80070005Error报错服务器原因 .NET Core Runtime安装失败0x80070005Error报错服务器原因

当然,这样设置以后,我还是没有解决,而且也找不到其他有效的信息了,比如vs2012、vs2015的C++运行环境如果没装会报错,但是我已经装好了。

没办法,回过头仔细看日志、翻看windows系统日志。。。。

甚至转到宝塔那边,询问会不会是宝塔拦截了?

结果宝塔告诉我,根据错误日志看起来是操作注册表被拒,建议我看看其他杀毒软件,陡然想起来服务器上还安装了“云锁”

.NET Core Runtime安装失败0x80070005Error报错服务器原因

立即跑过去关闭云锁的“系统保护加固”,果然这回就可以了。

微信公众号:大雕哥
只服务一小部分有独立思考的高端用户!
100000人已关注
分享到:
赞(0) 打赏

评论抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏