aspnetcore: .NET 7.0.0-rc1 ASP.NET Core Hosting Bundle fails to install x64 runtime/ANCM on Server 2016
I have a few Server 2016 VMs hosting ASP.NET Core 3.1 and ASP.NET Core 6 applications in IIS through the .NET Core Hosting Bundles.
Upon installing the .NET 7 rc1 Hosting Bundle, I noticed that it’s ONLY installing the x86 runtime and nothing for x64. Comparing snippets of the installation logs for .NET 6 Hosting Bundle compared to the .NET 7 rc1 hosting bundle, it seems some of the machine detection logic has changed?
I’ve even tried running the installation with an admin prompt with the OPT_NO_X86=1
flag, and it doesn’t make a difference. The only way anything x64-related installs is if I manually install the components. ASP.NET Core Runtime and .NET Core Runtime x64 will install properly when done manually. The ANCM is another story.
.NET 6 Hosting Bundle:
[0704:1294][2021-12-16T06:53:41]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[0704:1294][2021-12-16T06:53:41]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to true.
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreModuleV2_x64' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_001_AspNetCoreModuleV2_x64_rollback.log'
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleLog_AspNetCoreModuleV2_x64' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_001_AspNetCoreModuleV2_x64.log'
[0704:1294][2021-12-16T06:53:41]i052: Condition 'VersionNT64 AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to true.
[0704:1294][2021-12-16T06:53:41]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x64' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_002_DotNetRedistLts_x64.log'
[0704:1294][2021-12-16T06:53:41]i052: Condition '(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[0704:1294][2021-12-16T06:53:41]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_003_DotNetRedistLts_x86.log'
[0704:1294][2021-12-16T06:53:41]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to true.
[0704:1294][2021-12-16T06:53:41]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x64
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleLog_SharedFxRedist_x64' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_004_SharedFxRedist_x64.log'
[0704:1294][2021-12-16T06:53:41]i052: Condition '(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[0704:1294][2021-12-16T06:53:41]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x86
[0704:1294][2021-12-16T06:53:41]i000: Setting string variable 'WixBundleLog_SharedFxRedist_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20211216065338_005_SharedFxRedist_x86.log'
[0704:1294][2021-12-16T06:53:41]i201: Planned package: WindowsServerHostingBundleOptions.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0704:1294][2021-12-16T06:53:41]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0704:1294][2021-12-16T06:53:41]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0704:1294][2021-12-16T06:53:41]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0704:1294][2021-12-16T06:53:41]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0704:1294][2021-12-16T06:53:41]i201: Planned package: SharedFxRedist_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0704:1294][2021-12-16T06:53:41]i201: Planned package: SharedFxRedist_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0704:1294][2021-12-16T06:53:41]i299: Plan complete, result: 0x0
.NET 7 rc1 Hosting Bundle:
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="332") AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="34404") AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="43620") AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="43620") AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_arm64
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="34404") AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86
[1638:16B4][2022-09-15T06:32:10]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20220915063202_001_DotNetRedistLts_x86.log'
[1638:16B4][2022-09-15T06:32:10]i000: Setting string variable 'WixBundleRollbackLog_DotNetRedistLts_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20220915063202_001_DotNetRedistLts_x86_rollback.log'
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="43620") AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_arm64
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NativeMachine="34404") AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to false.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x64
[1638:16B4][2022-09-15T06:32:10]i052: Condition '(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[1638:16B4][2022-09-15T06:32:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x86
[1638:16B4][2022-09-15T06:32:10]i000: Setting string variable 'WixBundleLog_SharedFxRedist_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20220915063202_002_SharedFxRedist_x86.log'
[1638:16B4][2022-09-15T06:32:10]i000: Setting string variable 'WixBundleRollbackLog_SharedFxRedist_x86' to value 'C:\Users\***\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20220915063202_002_SharedFxRedist_x86_rollback.log'
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: WindowsServerHostingBundleOptions.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: AspNetCoreModuleV2_arm64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: DotNetRedistLts_arm64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: SharedFxRedist_arm64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: SharedFxRedist_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i201: Planned package: SharedFxRedist_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[1638:16B4][2022-09-15T06:32:10]i299: Plan complete, result: 0x0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (18 by maintainers)
Fixed by https://github.com/dotnet/aspnetcore/pull/44207 thanks so much for the detailed issue and helping us get the fix ready @snickler !
According to the docs, IsWow64Process2 is supposed to be supported on Windows 10 build 1511 and Server 2016. It appears that it’s not supported on Server 2016 and always returns an unknown machinetype value (00).
@snickler The hosting bundle remembers what it originally installed, so if you tried to install the build that @HaoK shared it will only try to update the previous bits that were installed.
I was able to install this private build on a 2016 Server VM after I installed IIS, so I think it should be good now:
Yes, though server 2016 should support it.
@HaoK there will be OS versions that support the hosting bundle, but not NativeMachine type. We should fix the conditions to check either VersionNT/VersionNT64 or NativeMachine values, so something like VersionNT64 or NativeMachine=“34404”, etc.