Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

Access to files in OneDrive denied in Hololens 2018


My app uploads a file (.jt - cad type) from OneDrive to Hololens, using this piece of code:

protected override void OnFileActivated(FileActivatedEventArgs args)
string appArgs = "";

   splashScreen = args.SplashScreen;
   appArgs += "File=";
   bool firstFileAdded = false;
   List<string> filePaths = new List<string>();

foreach (var file in args.Files)

          if (firstFileAdded) appArgs += ";";
          appArgs += file.Path;
          firstFileAdded = true;


    if (filePaths.Count > 0)

public void Update()
if (loadExternalFilePath != null)
string path = loadExternalFilePath;
loadExternalFilePath = null;
string newPath = Application.temporaryCachePath + Path.DirectorySeparatorChar + Path.GetFileName(path);

General.Instance.DebugTime("DataLoderManager::Update::" + Path.GetFileName(path));

if (File.Exists(newPath))

    File.Copy(path, newPath); //Exception!

File.SetAttributes(newPath, FileAttributes.Normal);

The upload worked fine on the previous version but I’ve just updated my Hololens’ version and started getting this exception:

System.UnauthorizedAccessException:'Access to the path 'C:\Data\Users\pleas\AppData\Local\Packages\microsoft.microsoftskydrive_8wekyb3d8bbwe\LocalState\OpenFile\ is denied.'

When I tried uploading the file from a different folder in Hololens (such as: Pictures or 3DObjects) it worked fine.
Is it still possible to upload files from OneDrive in the new version? If so, how can I solve this issue?
Note: I'm using Unity 5.6.2f1 (64-bit).

Thank you for your help.

Sign In or Register to comment.