Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PawarSa1999 opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@PawarSa1999
Copy link

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

@PawarSa1999 PawarSa1999 added the bug Something isn't working label Jan 16, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 16, 2025
@PawarSa1999
Copy link
Author

Hi Team ,

Any update on my issue , I am not about needs-triage mentioned by microsoft-github-policy-service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant