已从对COM组件的调用中返回HRESULT E_FAIL.UWP x86 ARM

本文关键字:HRESULT FAIL UWP ARM x86 返回 COM 组件 调用 | 更新日期: 2023-09-27 18:01:00

第一:这是代码:

        url = "ftp://user%40site.com:pass@ipblabla51/somefile.json";
        downloadOperation = downloader.CreateDownload(new Uri(url), file);
        Progress<DownloadOperation> progress = new Progress<DownloadOperation>(progresschanged);
        try
        {              
            await downloadOperation.StartAsync().AsTask(backgroundDownloader.Token, progress);
            /// some code
        }

当我在x86上运行时,文件下载正常,但当我在ARM设备上运行它时,会抛出错误:在这条线上:

await downloadOperation.StartAsync().AsTask(backgroundDownloader.Token, progress);

代码:HRESULT E_FAIL has been returned from a call to a COM component.

但是。。当我将URL更改为"https://eu.nicehost.com/files/somefile.....dasda.json";

代码运行良好。。所以问题在于URL解析,CCD_ 4是CCD_。当我将其更改为@时,后台下载程序无法授权ftp客户端。

那么该怎么做呢?

已从对COM组件的调用中返回HRESULT E_FAIL.UWP x86 ARM

所以。。如果有人会遇到这个问题,他需要更改主机,或者更改帐户名,因为那里不会有任何'%40'或其他unicode字符。

我刚换了一个服务器蚂蚁,它工作得很好,所以也许这是bug?谁知道呢。。

相关文章: