question

buddingdeveloper-3601 avatar image
0 Votes"
buddingdeveloper-3601 asked buddingdeveloper-3601 commented

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

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 :)

windows-uwpwindows-wpf
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AppServiceConnectionStatus.Unknown means An unknown error occurred. So there should be an error when you are trying to create an AppServiceConnection. I'd also want to know if the app is running as administrator because app service connections are not supported in elevated processes.

0 Votes 0 ·

Hi @RoyLi-MSFT, Thanks for your reply. The reason for this issue is the anti-virus protection. I am sorry that the anti-virus was not disabled properly before and now once I disabled the anti-virus properly, the issue is resolved. May I know why anti-virus is blocking the AppServiceConnection with the app services? Can you share some more info on this regard?

0 Votes 0 ·
RoyLi-MSFT avatar image RoyLi-MSFT buddingdeveloper-3601 ·

Glad to hear that the issue is found. Could you please share with me how you find this issue? I'll consult the team to see if they know anything about why it happens.

0 Votes 0 ·
Show more comments

0 Answers