Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11 23H2 build 22631.2861 not working (v1.19) #92

Closed
MorpheusUK opened this issue Nov 8, 2024 · 5 comments
Closed

Windows 11 23H2 build 22631.2861 not working (v1.19) #92

MorpheusUK opened this issue Nov 8, 2024 · 5 comments

Comments

@MorpheusUK
Copy link

I have installed the latest version at time of writing (v1.19 and also tried the Powershell version v1.5.9) which is failing with errors on Windows 11 23H2 build 22631.2861.
In the case of the C# VirtualDesktop11.exe and VirtualDesktop11-24H2.exe (tried in case the Guids now matched) I am getting the following errors:

PS C:> .\VirtualDesktop11.exe -switch:1

Unhandled Exception: System.TypeInitializationException: The type initializer for 'VirtualDesktop.DesktopManager' threw an exception. ---> System.InvalidCastException: Specified cast is not valid.
at VirtualDesktop.IServiceProvider10.QueryService(Guid& service, Guid& riid)
at VirtualDesktop.DesktopManager..cctor()
--- End of inner exception stack trace ---
at VDeskTool.Program.Main(String[] args)

PS C:> .\VirtualDesktop11-24H2.exe -switch:1

Unhandled Exception: System.TypeInitializationException: The type initializer for 'VirtualDesktop.DesktopManager' threw an exception. ---> System.InvalidCastException: Specified cast is not valid.
at VirtualDesktop.IServiceProvider10.QueryService(Guid& service, Guid& riid)
at VirtualDesktop.DesktopManager..cctor()
--- End of inner exception stack trace ---
at VDeskTool.Program.Main(String[] args)

@MScholtes
Copy link
Owner

Hello @MorpheusUK,

with version 22631.3085 Microsoft changed the Windows 11 API to access virtual desktops. Please update your Windows to an supported version.

Greetings

Markus

@MorpheusUK
Copy link
Author

MorpheusUK commented Nov 9, 2024

Thanks for your reply, unfortunately this is actually my newly issued work laptop with upgrades managed by our IT department this I am unable to change the build installed.

Looking at the change log v1.16 was the last release before those changes would that work with this build?

@MScholtes
Copy link
Owner

Hello @MorpheusUK,

tell your management to fire the IT department: patching is mandatory!

Yes, version 1.16 should work, but might have other flaws.

Greetings

Markus

@CainKilled
Copy link

CainKilled commented Nov 23, 2024

It looks like you're encountering issues with the VirtualDesktop11.exe and VirtualDesktop11-24H2.exe tools on Windows 11 23H2 build 22631.2861. The errors you're seeing are related to a System Type Initialization Exception caused by an Invalid Cast Exception. This typically indicates that there is a mismatch or issue with the COM interfaces or GUIDs being used. try updating your windows environment there may be patches available for your virtual desktop. or use an older version of Virtual Desktop as a temp fix. One that was known to work well with your windows ver. Maybe version 1.16 of the VD Tool. just keep in mind there may be other problems when using the older version. good luck! Happy hunting!!

@MScholtes
Copy link
Owner

No issue, just need to patch Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants