problem about isolatedstorage-Collection of common programming errors
alessandro.francesconi
c# stream windows-phone isolatedstorage
My Windows Phone application saves an object composed by some textual/numerical information (something like image capture date and so on) and a couple of JPEG image. For example and simplicity, a single file may be composed by the following data order:from byte 0 to 3 —–> INT NUMBER from byte 4 to 11 —-> TWO INTs DESCRIBING THE SIZE OF THE NEXT IMAGE from byte 12 to X —-> FIRST JPEG IMAGE from byte X+1 to X+7 -> TWO INTs DESCRIBING THE SIZE OF THE NEXT IMAGE from byte X+8 to Y
Jader Dias
c# .net isolatedstorage
I want to write a file where an external application can read it, but I want also some of the IsolatedStorage advantages, basically insurance against unexpected exceptions. Can I have it?
Cyberherbalist
windows-phone-7 isolatedstorage
I am getting some unexpected behavior using Isolated Storage. In this case, I am using it to maintain state for the purpose of tombstoning.This is a Ham Radio licensing exam practice app. Here is what happens. When the app is first run, the user is on the MainPage, and selects one of two links, OptionPage1 or OptionPage2 (they work similarly so I’ll just focus on one). On OptionsPage1, the user selects from a number of options, then clicks a Launch button to go to ExamPage, where the user an
Jakob
c# silverlight synchronization isolatedstorage
Since use of isolatedstorage storing for silverlight can provide a method for storing userdata locally and whikle not connected to the internet, I’m interested in hearing your thoughts about intelligently synchronizing dbdata and silverlight isolatedstoragedata.I’ve currently implemented a solution, but it seems a bit complex to me, so I’d like to hear if I could have done it differently.I have a list of documentobjects that I save to the isostore.the document has (datetime)DateModified and (boo
Peter Mortensen
silverlight log4net isolatedstorage
First, I know about Clog, and I do not want to implement this piece. The reason? We can’t maintain severeal logging ‘frameworks’.So to my question:Is it possible to implement log4net in a Silverlight application? What I want to achieve is logging to the Isolated Storage. I know, there’s only 1 MB of storage available, but this limit can be increased (the user has to accept this, I know too). By the way, please don’t provide me alternatives. I do only want to know if somebody implemented a log4ne
CognitiveDesire
javascript html css windows-phone-8 isolatedstorage
I have a HTML and JS file inside the application package of WP8 app and at runtime move the files to Isolated storage and then navigate the Browser to the html page.as give in the link hereWhen I keep these files in the folder and zip that folder and at run time unzip the files and do the same as above the page is rendered on the browser but CSS and JS files etc do not loadPlease help
Jeff Yates
silverlight mvvm isolatedstorage
I am using Silverlight MVVM and IsolatedStorageSettings.SiteSettings for session management. Everything is working fine and i am able to read the data in the next page , but design view is giving error as NotSupportedException.P.S. : I am storing one single value and bot my view and view model are in different project.
Pius
visual-studio-2010 windows-phone-7 isolatedstorage
I am making a small Windows Phone 7 application and have lots of text files used by the app. They all contains LOTS of lines. Is it possible to make some files be already installed when I launch the application? I know that emulator doesn’t save isolated storage when closed but I don’t need it. I want to make some data files which would be already in the storage when my app starts for the first time. If it is possible, how do I do that?I am using Visual Studio 2010
Qaiser
sqlite windows-phone-8 isolatedstorage
i’ve created a windows phone 8 app, that is giving the result of calculations at runtime, now i need to store that result for future use/access,what to do?i have totally no idea of storage in wp8, although i’ve seen many tutorials for isolated storage & sqlite, but did’nt understood whats going on in them……any suggestion? how to store my data..? easy steps to followthis is the code, which is showing result on a page at runtime,protected override void OnNavigatedTo(NavigationEventArgs e){
Rosarch
c# .net windows-phone-7 isolatedstorage
I’m building a Windows Phone 7 app in Silverlight. I’m having difficulty with IsolatedStorage.IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication();if (!storage.FileExists(STORIES_FILE)){storage.CreateFile(STORIES_FILE);}string contents;// fails hereusing (IsolatedStorageFileStream stream = storage.OpenFile(STORIES_FILE, FileMode.Open)){using (StreamReader reader = new StreamReader(stream)){contents = reader.ReadToEnd();}}The exception is:”Operation not permitted on Isol
Newbie
c# windows-phone-7 windows-phone-8 special-characters isolatedstorage
I have the problem that if special characters (apart from full stops, colons, and dashes) are used in an IsolatedStorage file name my application crashes.Is there any work-around for using these special character in the IsolatedStorage file name.If not how can I remove all the special characters?Side note: I’m taking the input for the file name from a TextBox.
Ali Shafai
silverlight security encryption isolatedstorage
I have a LOB application in SL, one of the aims is to save partially entered data to persist user’s state. for example, you start adding a new employee to system, close the browser (or it crashes), next time you open the browser, you have whatever data you had entered before.the saving and loading is easy, I was wondering if there is already a best practice for securing the data, considering both encryption and decryption happen on the same machine and same code, it looks a bit tricky…
Subby
windows-phone isolatedstorage
I have logic which checks and creates the isolated storage directory and the files related to my application.Do I put this logic within Application_Launching method within App?Or shall I simply call this on Page_Load of my starting XAML page?
aclap
windows-phone-7 windows-phone-8 isolatedstorage
This is the declaration for save_gpublic static IsolatedStorageSettings save_g = IsolatedStorageSettings.ApplicationSettings;here cons.term[7] is of type stringsave_g[cons.term[7]] = (double)save_g[cons.term[7]] + 1;The statement above executes with no problem on the emulator. But when I run it on device (Lumia 820) it gives error.A first chance exception of type ‘System.InvalidCastException’ occurred in PhoneApp2.DLLAn exception of type ‘System.InvalidCastException’ occurred in PhoneApp2.DLL bu
Robaticus
windows-phone-7 silverlight-4.0 windows-phone-7.1 windows-phone-7.5 isolatedstorage
In my WP7 application I have downloaded 200 images from Web and saved in isolated storage .When debug all the images are loaded in panorama view by queue method and I can view when it is connected to pc. after disconnect it from pc when i open the application and navigate the images it shows some images and terminated.if (i < 150){WebClient m_webClient = new WebClient(); Uri m_uri = new Uri(“http://d1mu9ule1cy7bp.cloudfront.net/2012//pages/p_” + i + “/mobile_high.jpg”);m_webClient
Vitalii Vasylenko
c# windows-phone-7 asynchronous isolatedstorage isolatedstoragefile
It sounds like “An error occurred while accessing IsolatedStorage”. But there’s no such exceptions is msdn: http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile.getlastaccesstime(v=vs.110).aspxI assume, it can be because i’m calling it inside of Task.Factory.StartNew(). Can it be a reason? It works on wp8 fine.EDIT:The problem was that I used GetLastAccessTime(cacheFileName).Millisecond; As it is said by the link by Agat, miliseconds are always 0 at the wp7. Or,
beny lim
c# windows-phone-7 isolatedstorage
Possible Duplicate:Grid in windows phone 7 I am trying to divide a grid named “scheduleListBox” into 2 column and then place the time in the variable of “time” and the next column to place a button it.Below is my code:string selectedFolderName;string selectedFolderName1;string[] timeSplit;string timeSaved;string timeList;protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e){base.OnNavigatedTo(e);selectedFolderName = “”;if (NavigationContext.QueryString.TryGetVal
kingsvid
image windows-phone-7 web-browser out-of-memory isolatedstorage
I’m working on my first WP7 app, and some problem occurred… My app downloads images from web and store them in Isolated Storage, then html file is generated and saved into IS. Everything works fine, until WebBrowser control try to open this html page, it render some content I can manipulate content as usual in WebBrowser, but in less then minute it throws:System.OutOfMemoryException was unhandled+ [System.OutOfMemoryException] {Could not evaluate expression} System.OutOfMemoryException
Yngve B. Nilsen
c# windows-phone-7 isolatedstorage
ScenarioApp opens Checks to see if image for background exists in Isolated Storage If not, downloads from web, and saves it to Isolated Storage Loads the image from Isolated Storage and sets it as Background on a Panorama-controlProblemThe image is not loaded in GUI.. When I’m inspecting the byte-array received from isolated storage, it contains the same amount of bytes as was written initially, but the image doesn’t show up.Here’s some test-code I’m currently using to try and figure out the pro
ctacke
c# windows-phone-7 isolatedstorage isolatedstoragefile
Description: The code below is the simplest code I could write which causes the failure. I’ve also tried: putting the CreateFile and MoveFile in different using statements, putting them in different xaml pages, moving the file into a subdirectory with a new filename, moving it into a subdirectory with the same filename. They all throw the same exception. CopyFile throws the same exception in all circumstances.Question is–what incredibly simple thing am I not accounting for? Open a new Silverlig
beny lim
windows-phone-7 isolatedstorage
I am trying to do a setting page where the user can choose the number of question, song and passing rate from listpicker control..Then the selected index of the question, song and passing rate will be write into isolated storage.Below is my code:int indexQues;string rate;private void saveBtn_Click(object sender, RoutedEventArgs e){using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) {if (myIsolatedStorage.FileExists(“SettingFolder\\queSetting.txt”)) {m
Dan Sewell
c# .net windows-phone-7 isolatedstorage
I have a page in my WP7 which contains some text boxes. When pressing the back key this method is run to save the contents:protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e){var settings = IsolatedStorageSettings.ApplicationSettings;settings[“remZone”] = txtBoxZone.Text;settings[“remSpace”] = txtBoxSpace.Text;}The problem is some users would not press the back button, but would press the home button to exit the app, so the contents are not saved.I think there are two
Andrew Davey
c# .net isolatedstorage
My library is using isolated storage but only does so on demand. So I’m using Lazy<T>.However, this throws: System.IO.IsolatedStorage.IsolatedStorageException “Unable to determine granted permission for assembly.”Does Lazy do something weird with threads that confuses isolated storage initialization?Sample code:using System; using System.IO.IsolatedStorage;namespace ConsoleApplication1 {class Program{static void Main(string[] args){var thisWorks = IsolatedStorageFile.GetMachineStoreForAsse
Soner Gönül
c# windows-phone-7 windows-phone-8 windows-phone isolatedstorage
I have a application that needs to download and save files on a device – videos.Videos are short ~ 10min and in poor quality, which means that their size is minimal.So, the problem is that when i download some files – all goes nice, but some files fail with error: Out of memory exception. Logically i think that files less than some size ( for example 50MB ) download nicely, but higher – exception.Here is my code:private void btnDownload2_Click(object sender, RoutedEventArgs e){WebClient webClien
Diego Vin
windows-phone-7 isolatedstorage tombstoning
Im trying to persist some data but im getting an error here.Declaration of isolated storage inside my public partial mainpage classIsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;implementation of onNavigatedFromprotected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e){settings.Add(“list”,listBox1.ItemsSource);settings.Save();}When I hit the start button on the emulator I get a security exception:System.Security.SecurityException was
TotalJargon
c# windows-phone-7.1 text-files xna-4.0 isolatedstorage
Basically I’m writing code that creates a new file in the IsolatedStorage, I’m sure that I’m closing the streams correctly but there must be something that’s missing, could you have a look at it to make sure I’m not missing something obvious?Here’s my save function, it’s where the error is thrown and is called at the end of a game once the user enters his/her name:public void SaveHighScores(string NewName, int NewScore) {SortHighScores(NewName, NewScore);IsolatedStorageFile isoStore = IsolatedSt
PiTheNumber
internet-explorer-9 local-storage isolatedstorage
Both statements window[‘localStorage’] and window.localStorageare undefined when accessing the url “file:///C:/index.html”Is localStorage off limits when running websites on the filesystem?PS. I’m running the website on a Windows 7 phone hosting the website in isolatedStorage.
tilak
windows-phone-7 sql-server-ce iqueryable isolatedstorage
I need to get the maximum value from table that should belongs to particular category. My code as follows : private int getHighScores(int _playMode){int maxScore = 0;using (HangmanScoreDataContext hangmanDB = new HangmanScoreDataContext(@”isostore:/HangmanScoreDB.sdf”)){IQueryable<TbleHangmanScore> sqlQuery = hangmanDB._tbleHangman;sqlQuery = sqlQuery.Where(p => p.playMode == _playMode); maxScore = sqlQuery.AsQueryable().Max(p => p.score);}return maxScore;}I am gettin
Web site is in building