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.

Crash when calling VirtualDesktop.Current.Id on latest Windows 11 Insider build

See original GitHub issue

After 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:open
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
NyaMistycommented, Apr 22, 2022

Also, building this lib is quite easy, just build the test program to try out

1reaction
NyaMistycommented, Apr 22, 2022

I mean my fork for MScholtes’s are working. They share same name, so don’t be confused 😉

Read more comments on GitHub >

github_iconTop 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 >

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