Crash when calling VirtualDesktop.Current.Id on latest Windows 11 Insider build
See original GitHub issueAfter upgrading my Windows 11 installation to the insider build below I get the following exception:
Edition Windows 11 Pro Version 22H2 OS build 22598.200 Experience Windows Feature Experience Pack 1000.22598.200.0
System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key 'IApplicationView' was not present in the dictionary.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
at WindowsDesktop.Interop.ComInterfaceAssemblyBuilder.CreateAssembly()
at WindowsDesktop.Interop.ComInterfaceAssemblyBuilder.GetAssembly()
at WindowsDesktop.VirtualDesktop.InitializeCore()
at WindowsDesktop.VirtualDesktop.InitializeIfNeeded()
at WindowsDesktop.VirtualDesktop.get_Current()
Related issues:
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
My computer keeps crashing after Windows 11 Insider ...
My computer keeps crashing after Windows 11 Insider Preview Build 25115 update - Microsoft Q&A.
Read more >Resolved issues in Windows 11, version 21H2
Find information on recently resolved issues for Windows 11, version 21H2. To find a specific issue, use the search function on your browser...
Read more >Announcing Windows 11 Insider Preview Build 23516 for ...
The Windows Insider Program allows you to preview early and in-development versions of Windows 11. You can help build Windows 11 alongside ...
Read more >Windows 11 Insider Previews: What's in the latest build?
The build has six known issues, including one which explorer.exe crashed on the login screen when attempting to enter safe mode, and another...
Read more >KB5012432 Cumulative Update Windows 11 Insider Dev ...
This build includes a couple of new features including enabling Windows Update to leverage renewable energy, improvement to Microsoft 365 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Also, building this lib is quite easy, just build the test program to try out
I mean my fork for MScholtes’s are working. They share same name, so don’t be confused 😉