UWP BackgroundTransfer(CreateDownload/GetCurrentDownloadsAsync)异常 [英] UWP BackgroundTransfer (CreateDownload / GetCurrentDownloadsAsync) Exception

查看:105
本文介绍了UWP BackgroundTransfer(CreateDownload/GetCurrentDownloadsAsync)异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为UWP使用 BackgroundTransfer API在我的开发过程中,我实现了远远超过传输限制(200)的目的,直到现在这还不成问题,因为Windows管理取消了超出限制的传输.但是现在,发生了一些事情,我永远无法通过 BackgroundDownloader().CreateDownload()或调用 BackgroundDownloader.GetCurrentDownloadsAsync()创建新的下载,因为这种异常总是会发生:

I am using BackgroundTransfer API for UWP and during my development I achieve much more than the limit (200) of transfer, until now this not become a problem because windows management cancel the transfers over the limit. But now, something occurs that I never can create a new download by BackgroundDownloader().CreateDownload() or call BackgroundDownloader.GetCurrentDownloadsAsync() because this exception always occur:

WinRT信息:最大并发操作的配额 超过.等待操作完成,然后再开始新操作.

WinRT information: Quota for maximum number of concurrent operations exceeded. Wait for an operation to complete before starting new ones.

我已经尝试了很多方法来解决此问题,但均未成功:

I already tried many things to solve this problem with NO success:

  • 等待很长时间(天)以完成那些丢失的后台下载
  • 多次重启PC
  • 终止/重置/卸载/重新安装我的应用程序(设置->应用程序和功能)
  • 针对Windows Store应用运行Run Troubleshooter
  • Windows Update
  • 从注册(regedit)清除我的应用程序的所有引用

我真的不想格式化/重新安装Windows10.:(

I really do not want to format/reinstall my Windows 10. :(

任何知道如何解决此问题的人?

Anyone with some idea how can I solve this problem?

推荐答案

由于某些未知的原因,该应用程序的注册被保存在某个位置,并且该应用程序无法完全删除,因此即使卸载了该应用程序,您仍然会收到异常消息.这可能是OS或Visual Studio的问题.

For some unknown reason, the registration of the app is kept somewhere and the app cannot be completely removed, so you get the exception even after uninstalling the app. This is likely to be an issue of the OS or Visual Studio.

由于每个应用程序的程序包名称都是唯一的,因此,如果更改其程序包名称,它将成为操作系统的全新应用程序.然后它应该重新开始工作.

Since the package name is unique for every app, so if you change its package name, it becomes a brand new app to the OS. Then it should start working again.

它可以恢复为原始程序包名称.

And it works after reverting back to the original package name.

这篇关于UWP BackgroundTransfer(CreateDownload/GetCurrentDownloadsAsync)异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆