gpt4 book ai didi

c# - 获取异常 "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

转载 作者:行者123 更新时间:2023-12-02 04:39:20 37 4
gpt4 key购买 nike

我遇到了异常

"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" on the code for Proximity (Windows Phone 8)`

ProximityDevice device = ProximityDevice. GetDefault ();

请告诉我原因

最佳答案

您是否将 NFC 功能添加到您的项目 list 中?您需要在 visual studio 中打开 WMAppManifest.xml 文件,进入 Capabilities 选项卡并选择 ID_CAP_PROXIMITY,然后一切正常:)

关于c# - 获取异常 "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21231311/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com