title: File path access permission
body: <p>I want to access a folder other than root folders in UWP. The user will select the file with a file picker and then this file will be used for software update.</p>
  <p>I am able to provide file selection as below. Then when I read this file, I get the error that I do not have permission to access it.</p>
  <pre><code>    var picker = new FileOpenPicker();
      picker.ViewMode = PickerViewMode.Thumbnail;
      picker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
  
      picker.FileTypeFilter.Add(&quot;.bin&quot;);
  
      file = await picker.PickSingleFileAsync();
  
      StorageFolder folder = await StorageFolder.GetFolderFromPathAsync(file.Path);
      StorageFile storageFile =  await storageFolder.GetFileAsync(file.Name);
      var fileStream = System.IO.File.Open(storageFile.Path, FileMode.Open);
  </code></pre>
  <p>If I manually copy the folder to the root folder and it works fine with the code below.</p>
  <pre><code>    StorageFolder storageFolder = ApplicationData.Current.LocalFolder;
      StorageFile storageFile =  await storageFolder.GetFileAsync(file.Name);
      var fileStream = System.IO.File.Open(storageFile.Path, FileMode.Open);
  </code></pre>
  <p>Solution for me in two ways. The first is to copy files from the outside to the root folder, the second way is to eliminate the access permission problem.Since it is a constantly changing file, I cannot import it into the project.</p>