diff --git a/src/Servers/IIS/AspNetCoreModuleV2/CommonLib/HostFxrResolver.cpp b/src/Servers/IIS/AspNetCoreModuleV2/CommonLib/HostFxrResolver.cpp index f553e2b3ea..e6bfdfb0c6 100644 --- a/src/Servers/IIS/AspNetCoreModuleV2/CommonLib/HostFxrResolver.cpp +++ b/src/Servers/IIS/AspNetCoreModuleV2/CommonLib/HostFxrResolver.cpp @@ -264,11 +264,11 @@ HostFxrResolver::GetAbsolutePathToDotnet( if (isWow64Process) { - regKeySubSection = L"SOFTWARE\\WOW6432Node\\dotnet\\Setup\\InstalledVersions\\x64\\sdk"; + regKeySubSection = L"SOFTWARE\\WOW6432Node\\dotnet\\Setup\\InstalledVersions\\x64"; } else { - regKeySubSection = L"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\x86\\sdk"; + regKeySubSection = L"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\x86"; } const auto installationLocation = RegistryKey::TryGetString( diff --git a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs index 11a2e5dca0..9edd9d72ac 100644 --- a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs +++ b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs @@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests var installDir = DotNetCommands.GetDotNetInstallDir(runtimeArchitecture); using (new TestRegistryKey( localMachine, - "SOFTWARE\\dotnet\\Setup\\InstalledVersions\\" + runtimeArchitecture + "\\sdk", + "SOFTWARE\\dotnet\\Setup\\InstalledVersions\\" + runtimeArchitecture, "InstallLocation", installDir)) {