Why am I getting an error in this code?
StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
StorageFile sampleFile = await folder.CreateFileAsync("sample.jpg", CreationCollisionOption.ReplaceExisting);
Error:
Additional information: Acces denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
In Windows store app and how to fix this problem?