I am trying to store a file to the app's storage in a Windows Phone 8.1 app, but it always fails with a System.UnauthorizedAccessException.
The exception occurs on the following line (no related code before that):
StorageFile storageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync("test.xml", CreationCollisionOption.ReplaceExisting);