Skip to content

WinUI 3 - Kiosk : Error - "The application called an interface that was marshalled for a different thread" #10304

Open
@PawarSa1999

Description

Describe the bug

Hi There,

I have simple WinUI3 applications and I wanted to use this this WinUI 3 app into Kiosk Mode, When I deploy/packaged I can not see the app listed in Kiosk mode, If I change configuration for EntryPoint as "ApplicationName" in "Package.appxmanifest" file, I am able to see this app listed into Kiosk mode. However when I try to run it it throws ''The application called an interface that was marshalled for a different thread. The Application Object must initially be accessed from the multi-thread apartment."error.

I need this WinUI 3 application to be run successfully with Kiosk Mode.

Steps to reproduce the bug

1.Download https://github.com/PawarSa1999/WinUI3KioskTest
2.Open Visual Studio 2022 and Run the project
3.Debug - x64

it will throw error as EntryPoint has been change as 'ApplicationName' into "Package.appxmanifest". If we keep as default ('"$targetentrypoint$" ') it will run the app but it won't be visible in Kiosk application list.

Expected behavior

WinUI 3 application need to run successfully with Kiosk Mode.

Screenshots

Image

Image

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions