本文介绍了尝试从服务配对两个WiFi Direct设备时,PairAsync()失败并出现AccessDenied错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我已根据WiFi Direct的UWP应用程序为WiFi Direct编写了Windows服务。但是当我尝试连接两台WiFi Direct设备时, WiFi Direct 服务端的配对失败。函数DeviceInformationCustomPairing.PairAsync()
失败,状态为AccessDenied(您的应用程序没有相应的权限级别来配对设备对象)。使用UWP应用程序时,未发现问题。怎么修好?如何为服务提供
适当的权限级别来配对?


谢谢&问候,


沙林

解决方案


Hi, 

I have written a Windows service for WiFi Direct, based on UWP application for WiFi Direct. But when I am trying to connect two WiFi Direct devices, pairing fails on the WiFi Direct service side. The function DeviceInformationCustomPairing.PairAsync() fails with the status AccessDenied (Your application does not have the appropriate permissions level to pair the device object). With the UWP application the issue is not observed. How it can be fixed? How to provide the service with appropriate permission level to pair?

Thanks & Regards,

Sarin

解决方案


这篇关于尝试从服务配对两个WiFi Direct设备时,PairAsync()失败并出现AccessDenied错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 04:32