I'm writing a little application on WinRT Metro Apps. I need to read an xml file and i get a awful COMException :/
This is which should read this xml:
Windows.Storage.StorageFolder storageFolder = await
Windows.ApplicationModel.Package.Current.InstalledLocation
.GetFolderAsync("Common");
Windows.Storage.StorageFile storageFile = await
storageFolder.GetFileAsync("testFile.xml");
var stream = await storageFile.OpenAsync(Windows.Storage.FileAccessMode.Read);
XmlDocument doc = await XmlDocument.LoadFromAsync(storageFile);
Can somebody give me somes tips to make it work?