MScholtes / VirtualDesktop

C# command line tool to manage virtual desktops in Windows 10
MIT License
606 stars 60 forks source link

Can't run on Windows Version 10.0.21327.1000+ #22

Closed Herman-Wu closed 3 years ago

Herman-Wu commented 3 years ago

I got the following error when tried to run on Windows Version 10.0.21327.1000+

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 commented 3 years ago

Hello Herman-Wu,

Microsoft has changed the API for virtual desktops again with the insider edition.

I do not have access to an insider edition so I have to wait for the release version to fix this (Microsoft will probably change the settings one more time).

Sorry for that

Markus

MScholtes commented 3 years ago

Closed since no reaction for over 4 weeks

NyaMisty commented 3 years ago

Please don't close issues like this simply because of inactivity. There's plenty of sources:

  1. https://github.com/Grabacr07/VirtualDesktop
  2. https://mntone.hateblo.jp/entry/2021/05/23/121028?utm_source=feed
NyaMisty commented 3 years ago

See #25