This repository was archived by the owner on Jun 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
[Arm64][Widgets] Unable to use Core Widgets on Arm64 due to bug in System.Management.dll #865
Copy link
Copy link
Closed
Labels
Area-WidgetsRelated to in-package widgetsRelated to in-package widgetsIssue-BugSomething isn't working or needs investigationSomething isn't working or needs investigationResolution-DuplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Dev Home version
0.137.141.0
Windows build number
10.0.25357.1
Other software
No response
Steps to reproduce the bug
- Install Dev Home from Winget or Store
- Add any of the Core Widgets like GPU, CPU or Memory
- Note a "This widget could not be displayed" message in the pinned widget
Expected result
Data read from the Core Widgets to be displayed.
Actual result
Application: CoreWidgetProvider.exe
CoreCLR Version: 6.0.1623.17311
.NET Version: 6.0.16
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
at System.Management.WmiNetUtilsHelper..cctor()
--- End of inner exception stack trace ---
at System.Management.MTAHelper.IsNoContextMTA()
at System.Management.MTAHelper.CreateInMTA(Type type)
at System.Management.ManagementPath.CreateWbemPath(String path)
at System.Management.ManagementPath..cctor()
--- End of inner exception stack trace ---
at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
Some quick searching on this particular problem led me to a commit that fixes this bug in the .NET 8 Preview 4 version of the System.Management NuGet package
Included System Information
Surface Pro X
Windows 11 Canary 10.0.25357.1
Included Extensions Information
No response
Metadata
Metadata
Assignees
Labels
Area-WidgetsRelated to in-package widgetsRelated to in-package widgetsIssue-BugSomething isn't working or needs investigationSomething isn't working or needs investigationResolution-DuplicateThis issue or pull request already existsThis issue or pull request already exists
