Access Denied Exception on WinUI app while using PeerFinder.FindAllPeersAsync()
Gueztt
1
Reputation point
While using the PeerFinder API form Windows.Networking.Proximity I get the exception UnauthorizedAccessException: Access is denied. (0x80070005 (E_ACCESSDENIED))
when using PeerFinder.FindAllPeersAsync(). 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.
The issue is also reproducible on UWP app.
Steps to reproduce the bug
- Run the app and click on
Search for Peers
Button
.
PeerFinderApp.zipScreenshots
- Exception Screenshot
- Exception Details
NuGet package version
WinUI 3 - Windows App SDK 1.1.4