nint8835-archive/iTunesRichPresence

COMException: Retrieving the COM class factory for component with CLSID {DC0C2640-1415-4644-875C-6F4D769839BA} ...

Closed this issue · 1 comments

Sentry Issue: ITUNESRICHPRESENCE-3G

XamlParseException: The invocation of the constructor on type 'iTunesRichPresence_Rewrite.MainWindow' that matches the specified binding constraints threw an exception.
  Module "MS.Internal.CulturePreservingExecutionContext", line 27, in CallbackWrapper
    Void CallbackWrapper(System.Object)
  Module "MS.Internal.CulturePreservingExecutionContext", line 0, in Run
    Void Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
  Module "MS.Win32.HwndWrapper", line 48, in WndProc
    IntPtr WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
  Module "MS.Win32.HwndSubclass", line 54, in DispatcherCallbackOperation
    System.Object DispatcherCallbackOperation(System.Object)
  Module "MS.Win32.HwndSubclass", line 285, in SubclassWndProc
    IntPtr SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
...
(27 additional frame(s) were not displayed)

COMException: Retrieving the COM class factory for component with CLSID {DC0C2640-1415-4644-875C-6F4D769839BA} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
  Module "iTunesRichPresence_Rewrite.DiscordBridge", line 181, in .ctor
    Void .ctor(System.String)
  Module "iTunesRichPresence_Rewrite.MainWindow", line 17, in CreateBridge
    Void CreateBridge()
  Module "iTunesRichPresence_Rewrite.MainWindow", line 449, in .ctor
    Void .ctor()
...
(3 additional frame(s) were not displayed)

The invocation of the constructor on type 'iTunesRichPresence_Rewrite.MainWindow' that matches the specified binding constraints threw an exception.

Occurs when the iTunes COM interface is not available, typically due to using the Windows Store version of iTunes. This issue should be detected and a user-friendly error message should be displayed rather than the app just not starting.