【发布时间】:2014-12-05 23:57:45
【问题描述】:
我需要通过下载和解析 JSON 来更新我的 Windows Phone 应用程序磁贴。所以我正在使用 Microsoft HTTP 客户端库。
当我尝试调试后台任务时,我总是遇到异常Use of networking APIs requires the ID_CAP_NETWORKING capability to be defined in the application manifest。
但我的清单根据需要包含了 ID_CAP_NETWORKING(屏幕截图 https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xaf1/t31.0-8/10750111_821340111262044_6461333323674658178_o.jpg)。
我不知道该怎么办。我尝试重建或重新创建应用程序,但这没有帮助。此外,我在互联网上找不到任何文档或答案。
你能写信吗,我能做些什么来解决这个问题?
这是演示项目http://1drv.ms/1yjHm49 重现问题(项目名称为“Meduza.Windows Phone”)。
我在 Lumia 720 上调试我的应用程序(如果有帮助的话)。
【问题讨论】:
-
运行你的应用程序,没有抛出异常。远射,但你能在 Package.appxmanifest 文件中启用
Internet (Client and Server)吗? -
您是否运行过
UpdateTileBackgroundTask(截图i.imgur.com/cEESNxl.png)?启用Internet (Client and Server并没有改变任何东西。
标签: windows-phone windows-phone-8.1 live-tile background-task