【问题标题】:Using TrySilentDownloadAndInstallStorePackageUpdatesAsync got an error: The specified account does not exist使用 TrySilentDownloadAndInstallStorePackageUpdatesAsync 出错:指定的帐户不存在
【发布时间】:2020-10-13 22:25:24
【问题描述】:

使用 TrySilentDownloadAndInstallStorePackageUpdatesAsync 更新 UWP APP 时出现错误:指定的帐户不存在

我尝试按照示例代码here进行升级,同时使用StoreQueueItem.StatusChanged获取进度信息,有时会得到这个状态信息(使用个人热点会更容易出现这种现象):

 {
     "ExtendedError":null,
     "PackageInstallExtendedState":14,
     "PackageInstallState":4,
     "UpdateStatus":{
         "PackageFamilyName":"AppName",
         "PackageDownloadSizeInBytes":2260223,
         "PackageBytesDownloaded":2260223,
         "PackageDownloadProgress":0.95,
         "TotalDownloadProgress":0.95,
         "PackageUpdateState":3
     }
 }

它看起来像暂停,但为什么暂停?是否需要再次调用 TrySilentDownloadAndInstallStorePackageUpdatesAsync 进行安装?

同时我在事件查看器中看到一些错误日志(Applications and Services->Microsoft-?Windows->Store->Operational):

  1. 来源:Store-SDK,事件 ID:2004,任务类别:应用内 购买,详情: SendStoreRequestWithUris(nullptr,UriHelperV7::InternalStoreEndpointExtensionUrls, UriHelperV7::InternalStoreEndpointExtensionUrlsIds::GetUserCollectionForProducts, 简历,jsonCollectionsParameters.Get(),nullptr, collectionsJsonString.GetAddressOf()) 错误:The specified account does not exist。功能: Windows::Services::Store::Internal::StoreContextServer::GetProductsByKinds 来源:\storecontextserver.cpp (4460)
  1. 来源:Store-SDK,事件 ID:2004,任务类别:应用内购买,详情: ChkHr(hrGoldenTicket) 错误:The specified account does not exist。功能: Windows::Services::Store::Internal::StoreContextServer::SendStoreRequestWithUris 来源:\storecontextserver.cpp (4065)
  1. 来源:安装服务,事件 ID:2008,任务类别: 服务,细节: [错误] ResumeWithFlagsQueueItemId = {9369AD17-2AA2-42A8-8F76-335AFAB88741} 错误:操作成功完成。功能:InstallQueue2::ResumeWithFlags 来源: onecoreuap\enduser\winstore\installservice\libqueue2\installqueue2.cpp (432)

我应该如何解决这个问题?

【问题讨论】:

  • 我已在MSDN 上回复您。请检查一下。

标签: uwp windows-store


【解决方案1】:

问题已解决。根本原因是我使用了试飞。正式版没有这个问题。这个问题只出现在试飞版中。

【讨论】:

    猜你喜欢
    • 2015-09-07
    • 2011-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多