Every time I call CreateDownload in BackgroundDownloader in my C # code for a Windows Store application, I get the following exception: Exception from HRESULT: 0x80072EE4 . I declared all the necessary features in my package file.
Example This code is interrupted when CreateDownload () is called:
public static async void DownloadFile(string url){ var uri = new Uri(url, UriKind.Absolute); FileSavePicker openPicker = new FileSavePicker(); openPicker.SuggestedStartLocation = PickerLocationId.VideosLibrary; openPicker.FileTypeChoices.Add("Video file", new List<string>() { ".mp4" }); StorageFile file = await openPicker.PickSaveFileAsync(); if (file != null) { DownloadOperation downloader = new BackgroundDownloader().CreateDownload(uri, file);
Exception This is the exact exception that I get:
System.Exception was unhandled by user code HResult=-2147012892 Message=Exception from HRESULT: 0x80072EE4 Source=Windows.Networking StackTrace: at Windows.Networking.BackgroundTransfer.BackgroundDownloader.CreateDownload(Uri uri, IStorageFile resultFile) at Example.BlankPage1.<DownloadFile>d__1.MoveNext() InnerException:
When I try to run the Windows 8.1 migration sample , I get the same exception in the same method.
When Googling on 0x80072EE4 , it is recommended that moving temporary Internet files solve the problem. In my case, this did not work.
source share