question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET 7.0.0-rc1 ASP.NET Core Hosting Bundle fails to install x64 runtime/ANCM on Server 2016

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:28 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
HaoKcommented, Sep 28, 2022

Fixed by https://github.com/dotnet/aspnetcore/pull/44207 thanks so much for the detailed issue and helping us get the fix ready @snickler !

1reaction
joeloffcommented, Sep 27, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET Core Hosting Bundle
If the Hosting Bundle is installed after installing the 64-bit (x64) version of .NET Core, SDKs might appear to be missing (No .NET...
Read more >
Issues with Hosting an ASP.NET Core Web Application on IIS
Based on the error message, it seems that the issue is related to the ANCM (ASP.NET Core Module) failing to start the .NET...
Read more >
HTTP Error 500.31 - Failed to load ASP.NET Core runtime
In my case, the target machine was missing the ASP.NET Core runtime itself. Issue is resolved after installing the Hosting Bundle from .Net...
Read more >
How to determine if asp.net core has been installed on a ...
1 - Windows Server Hosting registry key under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Updates\.NET Core path like screenshot below.
Read more >
Microsoft .NET Core - Windows Server Hosting 3.1.32
Hi, I try to install version 2.1.20. It fails with the following error: dotnetcore-windowshosting not installed. An error occurred during installation: Unable ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found