-
Notifications
You must be signed in to change notification settings - Fork 2
Description
This is the full error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
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() in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\VirtualDesktop.cs:line 262
--- End of inner exception stack trace ---
at VirtualDesktop.Desktop.get_Current() in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\VirtualDesktop.cs:line 385
at Productiv.VirtualDesktopAdapters.IsCurrentDesktopUnamed() in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\VirtualDesktopAdapters.cs:line 54
at Productiv.EventHandlers.OnCreateMinimized(IntPtr Handle) in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\EventHandlers.cs:line 94
at GlobalHooksTest.Form1._GlobalHooks_ShellWindowCreated(IntPtr Handle) in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\Form1.cs:line 978
at GlobalHooksTest.GlobalHooks.ShellHook.ProcessWindowMessage(Message& m) in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\GlobalHooks.cs:line 376
at GlobalHooksTest.GlobalHooks.ProcessWindowMessage(Message& m) in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\GlobalHooks.cs:line 100
at GlobalHooksTest.Form1.WndProc(Message& m) in D:\PROJECTS\Global-CbtHook2\Global-CbtHook\GlobalHooksTestCore\Form1.cs:line 259
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Private.CoreLib.dll
Productiv
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EshSub/Productiv/Productiv.dll
System.Windows.Forms
Assembly Version: 6.0.2.0
Win32 Version: 6.0.2824.12004
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Windows.Forms.dll
System.ComponentModel.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.ComponentModel.Primitives.dll
System.Runtime
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Runtime.dll
System.Windows.Forms.Primitives
Assembly Version: 6.0.2.0
Win32 Version: 6.0.2824.12004
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Windows.Forms.Primitives.dll
System.Runtime.InteropServices
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Runtime.InteropServices.dll
System.Drawing.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Drawing.Primitives.dll
System.Collections.Specialized
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Collections.Specialized.dll
System.Collections
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Collections.dll
Microsoft.Win32.Registry
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/Microsoft.Win32.Registry.dll
System.Drawing.Common
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Drawing.Common.dll
System.Configuration.ConfigurationManager
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Configuration.ConfigurationManager.dll
System.Diagnostics.TraceSource
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Diagnostics.TraceSource.dll
Microsoft.Win32.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/Microsoft.Win32.Primitives.dll
System.Threading
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Threading.dll
System.ComponentModel.EventBasedAsync
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.ComponentModel.EventBasedAsync.dll
System.Threading.Thread
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Threading.Thread.dll
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 6.0.2824.12004
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/Accessibility.dll
System.ComponentModel.TypeConverter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.ComponentModel.TypeConverter.dll
System.ComponentModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.ComponentModel.dll
System.Numerics.Vectors
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Numerics.Vectors.dll
System.Resources.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Resources.Extensions.dll
System.Memory
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Memory.dll
System.Drawing
Assembly Version: 6.0.2.0
Win32 Version: 6.0.2824.12004
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/System.Drawing.dll
System.ObjectModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.ObjectModel.dll
System.Linq
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Linq.dll
Microsoft.Win32.SystemEvents
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.28/Microsoft.Win32.SystemEvents.dll
System.Console
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Console.dll
System.Text.Encoding.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Text.Encoding.Extensions.dll
System.Diagnostics.FileVersionInfo
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Diagnostics.FileVersionInfo.dll
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Runtime.InteropServices.RuntimeInformation.dll
System.Private.Uri
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Private.Uri.dll
System.Xml.ReaderWriter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Xml.ReaderWriter.dll
System.Private.Xml
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Private.Xml.dll
System.Net.WebClient
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Net.WebClient.dll
System.Collections.NonGeneric
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Collections.NonGeneric.dll
System.Threading.ThreadPool
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Threading.ThreadPool.dll
System.Runtime.Loader
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Runtime.Loader.dll
System.Diagnostics.StackTrace
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Diagnostics.StackTrace.dll
System.Reflection.Metadata
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Reflection.Metadata.dll
System.Collections.Immutable
Assembly Version: 6.0.0.0
Win32 Version: 6.0.2824.12007
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.28/System.Collections.Immutable.dll
************** JIT Debugging **************
I have windows 11 23h2
