StoreContext.GetAppAndOptionalStorePackageUpdatesAsync

问题描述

我是 .Net 开发的新手。在 UWP 应用中,我需要检查商店中的包更新。我遵循了 this 教程。对于以下代码,我收到异常。

 StoreContext context = StoreContext.GetDefault();
 // Get the updates that are available.
 IReadOnlyList<StorePackageUpdate> updates =
 await context.GetAppAndOptionalStorePackageUpdatesAsync();

抛出异常:'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 类型异常 'System.IO.FileNotFoundException' 发生在 System.Private.CoreLib.dll 但未在用户代码中处理 系统 找不到指定的文件。 (来自 HRESULT 的异常:0x80070002)

我找不到任何提示为什么我会收到此异常。请帮助我解决此异常以及如何解决此问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...