PowerToys
PowerToys copied to clipboard
Application crach on Windows 11 ARM
Microsoft PowerToys version
0.61.1
Running as admin
- [X] Yes
Area(s) with issue?
General, Settings
Steps to reproduce
Start the application - Errors in eventlog: Description: A .NET application failed. Application: PowerToys.Awake.exe Path: C:\Program Files\PowerToys\modules\Awake\PowerToys.Awake.exe Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]
Description: A .NET application failed. Application: PowerToys.ColorPickerUI.exe Path: C:\Program Files\PowerToys\modules\ColorPicker\PowerToys.ColorPickerUI.exe Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]
Description: A .NET application failed. Application: PowerToys.PowerLauncher.exe Path: C:\Program Files\PowerToys\modules\launcher\PowerToys.PowerLauncher.exe Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]
Attempt to open settings from systray icon: Description: A .NET application failed. Application: PowerToys.Settings.exe Path: C:\Program Files\PowerToys\Settings\PowerToys.Settings.exe Message: Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7]
✔️ Expected Behavior
That the application runs as it used to
❌ Actual Behavior
No response
Other Software
No response
Looks more like it's a .NET problem. Did the installation go allright? Maybe you could try to install .NET manually?
No issues installing, and so far only program I have issues with
BTW FancyZones still work (my main reason for installing PowerToys), I just can't change the settings
@DBojsen - can you open up command prompt and run dotnet --info
and show your output?
@DBojsen - can you open up command prompt and run
dotnet --info
and show your output?
Of course - my output is:
.NET SDK:
Version: 7.0.100-preview.6.22352.1
Commit: 492644e08e
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-arm64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-preview.6.22352.1\
Host:
Version: 7.0.0-preview.6.22324.4
Architecture: arm64
Commit: d3fa592f6d
.NET SDKs installed:
5.0.410 [C:\Program Files\dotnet\sdk]
6.0.400-preview.22330.6 [C:\Program Files\dotnet\sdk]
7.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-preview.6.22330.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-preview.6.22324.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-preview.6.22351.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
@DBojsen - Thanks for this. I'm assuming you have Visual Studio 2022 17.2 installed? If so, it's possible that it installed the x64 version of .NET 6.0.7 instead of the arm64 version. The 0x800700C1 code is for "Not a valid Win32 application" and is only thrown when trying to load a dll from an incompatible architecture.
@DBojsen if you do have Visual Studio installed, open `Developer Command Prompt for VS 2022" and run the following command:
dumpbin /headers "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.7\hostpolicy.dll" | findstr /i machine
This should return AA64 machine (ARM64)
if the Arm64 runtime is installed.
Thank you @snickler
It didn't - returned 8664 machine (x64)
@DBojsen Here's some guidance around the .NET SDKs and Arm64 https://github.com/dotnet/sdk/issues/22380
I would recommend uninstalling the 6.0.7 runtime and installing the 6.0.7 Arm64 runtime for this specific case, but it might involve some extra SDK related reinstalling per the issue linked above. Once the proper arch for the runtime is installed, things should run properly.
Let us know! :)
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.