0
我去上面的錯誤,我不知道爲什麼,當我叫CreateFolderAsync()拋出異常:「System.UnauthorizedAccessException的」在mscorlib.ni.dll UWP
StorageFolder appInstalledFolder = Windows.ApplicationModel.Package.Current.InstalledLocation;
StorageFolder newFolder = await appInstalledFolder.CreateFolderAsync(ClientFolder, CreationCollisionOption.ReplaceExisting);
Activated Event Time Duration Thread
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.ni.dll ("Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))") 0.24s [13604] Worker Thread
我已經設置這些功能:
<Capabilities>
<Capability Name="internetClient" />
<uap:Capability Name="removableStorage" />
</Capabilities>
問題出在哪裏:
等待Windows.Storage.FileIO.ReadBufferAsync(路徑)當我有同樣的問題 – PrOgrAMmer
您可以使用選擇,而不是使用路徑。 – lindexi