![](/img/trans.png)
[英]Getting System.UnauthorizedAccessException when trying to fetch files from network
[英]'System.UnauthorizedAccessException' when trying to open file from LocalFolder
下面的代碼行引發System.UnauthorizedAccessException:
StorageFile file
= await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync("ms-appx:///Assets/image.png");
var uri = new Uri("ms-appx:///Assets/image.png");
var file = await StorageFile.GetFileFromApplicationUriAsync(uri);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.