Skip to content

COMException when clone a page's content to a object and set it back later in mainthread on Windows #35277

Description

@0xeeeeeeeeeeee

Description

On windows with MAUI 10.0.60, while I'm trying to clone a page's Content to another object, set the page's Content to another thing, after that when I trying set the content back to the copied object, I receive a "COMException: No installed components detected" (the message maybe localized) continually whatever I use dispatcher or use MainThread.

It's works well on other platform. See these examples below:

on .NET MAUI 10.0.50:

_2026_05_02_01_08_47_97.-.Trim.mp4

on .NET MAUI 10.0.60:

_2026_05_02_01_09_55_251.-.Trim.mp4

Steps to Reproduce

  1. write something like this in a page:
 private async void SetContentButton_Clicked(object sender, EventArgs e)
 {
     var another = new Label { Text = "This is another label", HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center };
     var orig = Content;
     Content = another;
     //do anything you like
     await Task.Delay(5000);
     Dispatcher.Dispatch(() =>
     {
         Content = orig;
     });
 }
  1. trigger that logic (i.e. click on the button which registered it's OnClick event to this function)
  2. In windows you should receive a "COMException: No installed components detected"

Link to public reproduction project repository

No response

Version with bug

10.0.60

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.50

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

not yet

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    i/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.partner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowsregressed-in-10.0.60s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions