AppServiceConnection.OpenAsync() returns AppServiceConnectionStatus.Unknown for desktop bridge between UWP and WPF

budding_developer 156 Reputation points
2021-06-14T09:13:48.08+00:00

Hii,
We are using desktop bridge for communication between uwp and wpf app using the app service connection. The app is published in Microsoft store and it works fine for all our customers. Recently one customer reported an issue and we could find that the connection is not established between the uwp and wpf app. In his case, the wpf app is launched successfully using await Windows.ApplicationModel.FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync() but the connection status for connection.OpenAsync() is returning as AppServiceConnectionStatus.Unknown always. I wanted to know which protocol is used for communication in app services and on what condition does it break? Also can you please let me know the reasons for this AppServiceConnectionStatus.Unknown status?

P.S:- We already tried the following fixes but couldn't fix the issue.

  1. Uninstalling and reinstalling the app.
  2. Disabled the antivirus.

Kindly help! Thanks in Advance :)

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.