gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 21:36:39 26 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 ();

请告知原因

最佳答案

您是否在项目 list 中添加了 NFC 功能?您需要在 Visual Studio 中打开 WMAppManifest.xml 文件,进入“功能”选项卡并选择 ID_CAP_PROXIMITY,然后一切即可正常工作:)

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

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