Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

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.

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, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

How to edit an XML file in Streamingassets from my hololens?

edited May 2019 in Questions And Answers


I have a really frustrating problem with my app, I'm using Vuforia and I'm trying to edit and save an xml in streamingassets from runtime, however, I get the following exception:

Unauthorizedaccessexception ... access to the path is denied.

I use the following when I get this error(only on the hololens, not in the editor):
var path = Path.Combine(Application.streamingAssetsPath, "xx.xml");
but when I save something to:
var path = Path.Combine(Application.persistentDataPath, "xx.xml");
it works perfectly. I can't do this though because of Vuforia can only access image targets in Streamingassets. So does anyone have an idea what I'm doing wrong, what can I do to gain access to the streamingassets folder?

Thank you!

Sign In or Register to comment.