WindowsAppSDK
WindowsAppSDK copied to clipboard
Access Denied Exception on PeerFinder.FindAllPeersAsync()
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
- 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
- Exception Screenshot
- Exception Details
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.