isolatedstoragefile

All files in IsolatedStorageFile store disappear after rebuilding WP8 Silverlight solution

三世轮回 提交于 2020-02-07 05:44:18
问题 I'm developing a WP8 Silverlight app which uses the IsolatedStorageFile store for app's data. At some point I detected that if I issue the Rebuild Solution command in VS.NET, VS uses full deployment of my project to the emulator or an attached device instead of incremental deployment. The typical Build output in this case looks like this: 2> Connecting to Emulator 8.1 WXGA 4.5 inch... 2> The application is already installed on the device. Checking if an incremental deployment is possible... 2

StorageFile 50 times slower than IsolatedStorageFile

耗尽温柔 提交于 2019-12-31 08:13:57
问题 I was just benchmarking multiple algorithms to find the fastest way to load all data in my app when I discovered that the WP7 version of my app running on my Lumia 920 loads the data 2 times as fast as the WP8 version running on the same device. I than wrote the following independent code to test performance of the StorageFile from WP8 and the IsolatedStorageFile from WP7. To clarify the title, here my preliminary benchmark results I did, reading 50 files of 20kb and 100kb: For the code, see

StorageFile 50 times slower than IsolatedStorageFile

…衆ロ難τιáo~ 提交于 2019-12-31 08:13:08
问题 I was just benchmarking multiple algorithms to find the fastest way to load all data in my app when I discovered that the WP7 version of my app running on my Lumia 920 loads the data 2 times as fast as the WP8 version running on the same device. I than wrote the following independent code to test performance of the StorageFile from WP8 and the IsolatedStorageFile from WP7. To clarify the title, here my preliminary benchmark results I did, reading 50 files of 20kb and 100kb: For the code, see

windows phone 7 isolated storage - operation not permitted

爱⌒轻易说出口 提交于 2019-12-24 14:26:40
问题 So I've been working on a simple game and I wanted to implement a highscore system. Once the player loads up the main page for the first time a new text file is created ("hsc.txt") and some fake values are inserted which are later on split up by the program, however, currently my code throws a System.IO.IsolatedStorage.IsolatedStorageException and I can't seem to find the problem. I've looked up the error that I got from the message box which was " - operation not permitted " but all the

Appending new XElement adds an entire XML to existing xml in stream

人盡茶涼 提交于 2019-12-12 00:36:08
问题 I have an existing XML stored in the InternalFielStorage as.. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Root> <Books> <Author name="Sam" /> </Books> </Root> I am trying to append a "title" node under the "Author" node but the when saved, I am seeing a completly new xml added to the existing xml as.. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Root> <Books> <Author name="Sam" /> </Books> </Root> <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Root> <Books>

Deploy WP8 app to device and save all its settings after rebuilding the project

倾然丶 夕夏残阳落幕 提交于 2019-12-11 20:22:28
问题 I have accidentally killed one of my WP projects in VS2013. I receovered the source code from the backup, but now, if I try to recompile it and deploy to my device for further debugging, all my app data in the app IsolatedStodage area will be wiped (see this post). The problem is that I have gathered some important data in my app, and need to save them for later use with newer versions of my app. Is there a way to access the file system on a WP device unlocked for development and save the

How do you get a flat listing of all files in IsolatedStorage?

南楼画角 提交于 2019-12-06 06:38:11
问题 I need to get a list of all files in a given IsolatedStorage folder. There are sub folders off the root of the IsolatedStorage and these need to be included in the list. The usual System.IO classes can't be used with IsolatedStorage. 回答1: Here's what I've come up with - it works but I'd be interested to see if there are better alternatives: using System.Collections.Generic; using System.IO; using System.IO.IsolatedStorage; using System.Linq; public static class IsolatedStorageFileExtensions {

Get URI for a stored file in StorageFile (WinRT)

喜欢而已 提交于 2019-12-04 13:48:50
问题 I'm building a metro app, and I'm trying to get a Uri of an Image after saving it in the StorageFile, this is my code: StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync("samplefile.dat", CreationCollisionOption.ReplaceExisting); IRandomAccessStream raStream = await file.OpenAsync(FileAccessMode.ReadWrite); IOutputStream outStream = raStream.GetOutputStreamAt(0); DataWriter dw = new DataWriter(outStream); dw.WriteBytes(img); // I'm saving array of bytes await

How do you get a flat listing of all files in IsolatedStorage?

我的未来我决定 提交于 2019-12-04 11:57:44
I need to get a list of all files in a given IsolatedStorage folder. There are sub folders off the root of the IsolatedStorage and these need to be included in the list. The usual System.IO classes can't be used with IsolatedStorage. Tom Robinson Here's what I've come up with - it works but I'd be interested to see if there are better alternatives: using System.Collections.Generic; using System.IO; using System.IO.IsolatedStorage; using System.Linq; public static class IsolatedStorageFileExtensions { /// <summary> /// Recursively gets a list of all files in isolated storage /// </summary> ///

StorageFile 50 times slower than IsolatedStorageFile

冷暖自知 提交于 2019-12-02 15:35:56
I was just benchmarking multiple algorithms to find the fastest way to load all data in my app when I discovered that the WP7 version of my app running on my Lumia 920 loads the data 2 times as fast as the WP8 version running on the same device. I than wrote the following independent code to test performance of the StorageFile from WP8 and the IsolatedStorageFile from WP7. To clarify the title, here my preliminary benchmark results I did, reading 50 files of 20kb and 100kb: For the code, see below Update After doing benchmarks for a few hours today and some interesting results, let me rephrase