WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Access Denied Exception on PeerFinder.FindAllPeersAsync()

Open Gueztt opened this issue 1 year ago • 0 comments

Describe the bug

While using the PeerFinder API form Windows.Networking.Proximity I get the exception UnauthorizedAccessException: Access is denied. (0x80070005 (E_ACCESSDENIED)) . I'm unable to trace the reason for this. I have enabled App Capabilities for Proximity and Internet.

The same code when used in Console App works just fine.

Steps to reproduce the bug

  1. Run the app and click on Search for Peers Button. PeerFinderApp.zip

Expected behavior

It should be possible to find peers same as in console app.

Screenshots

  1. Exception Screenshot

Screenshot 2022-08-31 131709

  1. Exception Details

Screenshot 2022-08-31 132251

NuGet package version

WinUI 3 - Windows App SDK 1.1.4

Windows app type

  • [ ] UWP
  • [x] Win32

Device form factor

Desktop

Windows version

Windows 10 (21H2): Build 19044

Additional context

I'm not entirely sure whether this is the right place for this. Bear with me please.

Gueztt avatar Aug 31 '22 07:08 Gueztt